Add missing callback dependency (#30797)

This commit is contained in:
Alex Khomenko 2021-02-02 09:17:11 +02:00 committed by GitHub
parent 179f35a537
commit 64a1003a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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