diff --git a/frontend/src/store/useSimulatorStore.ts b/frontend/src/store/useSimulatorStore.ts index a65e66bd..113d34d9 100644 --- a/frontend/src/store/useSimulatorStore.ts +++ b/frontend/src/store/useSimulatorStore.ts @@ -697,10 +697,11 @@ export const useSimulatorStore = create((set, get) => { ), })); - // Replace file group with appropriate default files + // Replace file group with appropriate default files and activate it const editorStore = useEditorStore.getState(); editorStore.deleteFileGroup(board.activeFileGroupId); editorStore.createFileGroup(board.activeFileGroupId, mode); + editorStore.setActiveGroup(board.activeFileGroupId); }, startBoard: (boardId: string) => {