From ff8456b61a344081f1b238858a092c206a4aa77c Mon Sep 17 00:00:00 2001 From: Dev Catalin <20538711+devcatalin@users.noreply.github.com> Date: Fri, 25 Mar 2022 20:05:50 +0200 Subject: [PATCH] fix: make sure paneConfiguration has initial state --- src/redux/initialState.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/redux/initialState.ts b/src/redux/initialState.ts index 2880246bd3..0c772cff6e 100644 --- a/src/redux/initialState.ts +++ b/src/redux/initialState.ts @@ -164,7 +164,14 @@ const initialUiState: UiState = { navPane: { collapsedNavSectionNames: [], }, - paneConfiguration: electronStore.get('ui.paneConfiguration'), + paneConfiguration: electronStore.get('ui.paneConfiguration') || { + leftWidth: 0.3333, + navWidth: 0.3333, + editWidth: 0.3333, + rightWidth: 0, + actionsPaneFooterExpandedHeight: 0, + recentProjectsPaneWidth: 300, + }, layoutSize: { footer: 0, header: 0,