mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: misc ui fixes volume 4 (#34503)
This commit is contained in:
@@ -66,8 +66,14 @@ export const AlertRuleForm: FC<Props> = ({ existing }) => {
|
||||
values: {
|
||||
...defaultValues,
|
||||
...values,
|
||||
annotations: values.annotations?.filter(({ key, value }) => !!key && !!value) ?? [],
|
||||
labels: values.labels?.filter(({ key }) => !!key) ?? [],
|
||||
annotations:
|
||||
values.annotations
|
||||
?.map(({ key, value }) => ({ key: key.trim(), value: value.trim() }))
|
||||
.filter(({ key, value }) => !!key && !!value) ?? [],
|
||||
labels:
|
||||
values.labels
|
||||
?.map(({ key, value }) => ({ key: key.trim(), value: value.trim() }))
|
||||
.filter(({ key }) => !!key) ?? [],
|
||||
},
|
||||
existing,
|
||||
redirectOnSave: exitOnSave ? returnTo : undefined,
|
||||
|
||||
Reference in New Issue
Block a user