Add missing callback dependency (#30797) (#30809)

(cherry picked from commit 64a1003a28)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2021-02-02 10:05:53 +02:00
committed by GitHub
co-authored by Alex Khomenko
parent 6c9e8549ca
commit 8b1c6ed1b3
@@ -19,7 +19,7 @@ export const SelectionOptionsEditor: FunctionComponent<SelectionOptionsEditorPro
(event: React.ChangeEvent<HTMLInputElement>) => {
props.onMultiChanged(toVariableIdentifier(props.variable), event.target.checked);
},
[props.onMultiChanged]
[props.onMultiChanged, props.variable]
);
const onIncludeAllChanged = useCallback(