From ccac1494c23e6a6e69a447ee8458554eb5d0c15e Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Wed, 26 Apr 2023 19:05:52 +0530 Subject: [PATCH] chore: revert labs changes --- .../Components/Preferences/Panes/General/Labs/Labs.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) }}