From 770b361b947563fb77bb7e030aabb6257e067164 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sun, 3 Aug 2025 12:32:29 -0400 Subject: [PATCH] reset default tab --- frontend/apps/editor3d/app/src/pages/Stores/TabState.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/apps/editor3d/app/src/pages/Stores/TabState.ts b/frontend/apps/editor3d/app/src/pages/Stores/TabState.ts index d6f1fd7964..213ea01a74 100644 --- a/frontend/apps/editor3d/app/src/pages/Stores/TabState.ts +++ b/frontend/apps/editor3d/app/src/pages/Stores/TabState.ts @@ -3,6 +3,8 @@ import { useSceneStore } from '../PageDraw/stores/SceneState'; export type TabId = '2D' | '3D' | 'VIDEO' | 'IMAGE' | 'EDIT'; +const DEFAULT_TAB : TabId = '2D'; + interface TabState { // Current active tab activeTabId: TabId; @@ -18,7 +20,7 @@ interface TabState { } export const useTabStore = create((set, get) => ({ - activeTabId: 'EDIT', + activeTabId: DEFAULT_TAB, tabData: {}, setActiveTab: async (newTabId) => {