diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/General/Labs/Labs.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/General/Labs/Labs.tsx index 07fff3908..cab02a1cc 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/General/Labs/Labs.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/General/Labs/Labs.tsx @@ -30,11 +30,11 @@ const LabsPane: FunctionComponent = ({ application }) => { const [experimentalFeatures, setExperimentalFeatures] = useState([]) const [isPaneGesturesEnabled, setIsPaneGesturesEnabled] = useState(() => - application.getPreference(PrefKey.PaneGesturesEnabled), + application.getPreference(PrefKey.PaneGesturesEnabled, false), ) useEffect(() => { return application.addSingleEventObserver(ApplicationEvent.PreferencesChanged, async () => { - setIsPaneGesturesEnabled(application.getPreference(PrefKey.PaneGesturesEnabled)) + setIsPaneGesturesEnabled(application.getPreference(PrefKey.PaneGesturesEnabled, false)) }) }, [application]) @@ -69,7 +69,7 @@ const LabsPane: FunctionComponent = ({ application }) => { { void application.setPreference(PrefKey.PaneGesturesEnabled, !isPaneGesturesEnabled) }}