reset default tab

This commit is contained in:
Brandon Thomas committed 2025-08-03 12:32:29 -04:00
1 parent 32282d628f
commit 770b361b94
1 file changed
+3 -1
@@ -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<TabState>((set, get) => ({
activeTabId: 'EDIT',
activeTabId: DEFAULT_TAB,
tabData: {},
setActiveTab: async (newTabId) => {