feat(editor): Enable NodeView.switcher by default in dev mode (no-changelog) (#10165)

This commit is contained in:
Alex Grozav
2024-07-24 11:02:42 +03:00
committed by GitHub
parent dea212659a
commit fe1a1d80c6

View File

@@ -96,7 +96,7 @@ const importFileRef = ref<HTMLInputElement | undefined>();
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[]) => {