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

Custom values were not being displayed in the multiselect for notification policy `Group by` even though
they were correctly being saved.
This commit is contained in:
Matthew Jacobson 2022-09-01 19:06:42 -04:00 committed by GitHub
parent e17c2f1cb5
commit d706320d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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}