diff --git a/src/components/OptionsSelector/BaseOptionsSelector.js b/src/components/OptionsSelector/BaseOptionsSelector.js index d8ed45f5d6eb..ac76846ab2e3 100755 --- a/src/components/OptionsSelector/BaseOptionsSelector.js +++ b/src/components/OptionsSelector/BaseOptionsSelector.js @@ -346,6 +346,9 @@ function BaseOptionsSelector(props) { [allOptions, sections], ); + // eslint-disable-next-line react-hooks/exhaustive-deps + useEffect(() => setSections(sliceSections()), []); + useEffect(() => { subscribeToEnterShortcut(); subscribeToCtrlEnterShortcut();