Alerting: Fix UI bug when setting custom notification policy group by (#54607) (#54610)

Custom values were not being displayed in the multiselect for notification policy `Group by` even though
they were correctly being saved.

(cherry picked from commit d706320d0a)

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-09-01 19:19:06 -04:00
committed by GitHub
co-authored by Matthew Jacobson
parent 11ba65420d
commit b622632291
2 changed files with 2 additions and 2 deletions
@@ -87,7 +87,7 @@ export const AmRootRouteForm: FC<AmRootRouteFormProps> = ({
setValue('groupBy', [...field.value, opt]);
}}
onChange={(value) => onChange(mapMultiSelectValueToStrings(value))}
options={[...commonGroupByOptions, groupByOptions]}
options={[...commonGroupByOptions, ...groupByOptions]}
/>
)}
control={control}
@@ -180,7 +180,7 @@ export const AmRoutesExpandedForm: FC<AmRoutesExpandedFormProps> = ({ onCancel,
setValue('groupBy', [...field.value, opt]);
}}
onChange={(value) => onChange(mapMultiSelectValueToStrings(value))}
options={[...commonGroupByOptions, groupByOptions]}
options={[...commonGroupByOptions, ...groupByOptions]}
/>
)}
control={control}