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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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[]) => {