Skip to content

Commit

Permalink
fix: Prevent update not found meesage to appear on every boot up
Browse files Browse the repository at this point in the history
  • Loading branch information
erdkse authored and kambydyne committed Oct 1, 2021
1 parent 1c5322d commit 45be7e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/redux/reducers/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ export const configSlice = createSlice({
state.settings.helmPreviewMode = action.payload;
},
setNewVersion: (state: Draft<AppConfig>, action: PayloadAction<{code: NewVersionCode; data: any}>) => {
state.newVersion = action.payload;
state.newVersion.code = action.payload.code;
state.newVersion.data = {
...(state.newVersion.data && {}),
...action.payload.data,
};
},
setLoadLastFolderOnStartup: (state: Draft<AppConfig>, action: PayloadAction<boolean>) => {
state.settings.loadLastFolderOnStartup = action.payload;
Expand Down

0 comments on commit 45be7e4

Please sign in to comment.