Skip to content

Commit

Permalink
fix: make sure paneConfiguration has initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Mar 25, 2022
1 parent 30838ce commit ff8456b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/redux/initialState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ff8456b

Please sign in to comment.