mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add comment explaining reset in silences editor
This commit is contained in:
parent
df5c62b8ad
commit
f419c9b53a
@ -139,6 +139,7 @@ export const SilencesEditor = ({ silenceId, alertManagerSourceName }: Props) =>
|
|||||||
const matcherFields = watch('matchers');
|
const matcherFields = watch('matchers');
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
// Allows the form to correctly initialise when an existing silence is fetch from the backend
|
||||||
reset(getDefaultFormValues(urlSearchParams, silence));
|
reset(getDefaultFormValues(urlSearchParams, silence));
|
||||||
}, [reset, silence, urlSearchParams]);
|
}, [reset, silence, urlSearchParams]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user