Commit 64a1003a by Alex Khomenko Committed by GitHub

Add missing callback dependency (#30797)

parent 179f35a5
...@@ -19,7 +19,7 @@ export const SelectionOptionsEditor: FunctionComponent<SelectionOptionsEditorPro ...@@ -19,7 +19,7 @@ export const SelectionOptionsEditor: FunctionComponent<SelectionOptionsEditorPro
(event: React.ChangeEvent<HTMLInputElement>) => { (event: React.ChangeEvent<HTMLInputElement>) => {
props.onMultiChanged(toVariableIdentifier(props.variable), event.target.checked); props.onMultiChanged(toVariableIdentifier(props.variable), event.target.checked);
}, },
[props.onMultiChanged] [props.onMultiChanged, props.variable]
); );
const onIncludeAllChanged = useCallback( const onIncludeAllChanged = useCallback(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment