Skip to content

Commit ee8bf56

Browse files
committed
ENG-1478: skip reload prompt when new settings store is active
1 parent 5925be2 commit ee8bf56

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/roam/src/components/settings/GeneralSettings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
GlobalTextPanel,
77
FeatureFlagPanel,
88
} from "./components/BlockPropSettingPanels";
9+
import { isNewSettingsStoreEnabled } from "./utils/accessors";
910
import posthog from "posthog-js";
1011

1112
const DiscourseGraphHome = () => {
@@ -43,7 +44,7 @@ const DiscourseGraphHome = () => {
4344
uid={settings.leftSidebarEnabled.uid}
4445
parentUid={settings.settingsUid}
4546
onAfterChange={(checked: boolean) => {
46-
if (checked) {
47+
if (checked && !isNewSettingsStoreEnabled()) {
4748
setIsAlertOpen(true);
4849
}
4950
posthog.capture("General Settings: Left Sidebar Toggled", {

0 commit comments

Comments
 (0)