diff --git a/src/redux/reducers/appConfig.ts b/src/redux/reducers/appConfig.ts index 9b09f46fba..f64a157577 100644 --- a/src/redux/reducers/appConfig.ts +++ b/src/redux/reducers/appConfig.ts @@ -106,7 +106,11 @@ export const configSlice = createSlice({ state.settings.helmPreviewMode = action.payload; }, setNewVersion: (state: Draft, 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, action: PayloadAction) => { state.settings.loadLastFolderOnStartup = action.payload;