From fe1a1d80c69e00e9d6d481caffb8c8e14a791777 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Wed, 24 Jul 2024 11:02:42 +0300 Subject: [PATCH] feat(editor): Enable `NodeView.switcher` by default in dev mode (no-changelog) (#10165) --- .../editor-ui/src/components/MainHeader/WorkflowDetails.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue b/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue index 5e1c3ae20d..fb10372020 100644 --- a/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue +++ b/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue @@ -96,7 +96,7 @@ const importFileRef = ref(); const tagsEventBus = createEventBus(); const sourceControlModalEventBus = createEventBus(); -const nodeViewSwitcher = useLocalStorage('NodeView.switcher', ''); +const nodeViewSwitcher = useLocalStorage('NodeView.switcher', import.meta.env.DEV ? 'true' : ''); const nodeViewVersion = useLocalStorage('NodeView.version', '1'); const hasChanged = (prev: string[], curr: string[]) => {