We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28fe5fd commit c845e60Copy full SHA for c845e60
apps/array/src/renderer/stores/settingsStore.ts
@@ -19,7 +19,10 @@ export const useSettingsStore = create<SettingsState>()((set) => ({
19
const mode = await trpcVanilla.secureStore.getItem.query({
20
key: "terminalLayoutMode",
21
});
22
- set({ terminalLayoutMode: mode as TerminalLayoutMode, isLoading: false });
+ set({
23
+ terminalLayoutMode: (mode as TerminalLayoutMode) || "split",
24
+ isLoading: false,
25
+ });
26
} catch (_error) {
27
set({ terminalLayoutMode: "split", isLoading: false });
28
}
0 commit comments