Skip to content

Commit 316fb6a

Browse files
committedApr 1, 2025·
console: Fix user preferences
1 parent 95dfaa8 commit 316fb6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎pkg/webui/console/store/reducers/user-preferences.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ const initialState = {
3030
totalCount: {},
3131
perEntityBookmarks: {},
3232
},
33-
consolePreferences: {},
33+
consolePreferences: {
34+
console_theme: 'CONSOLE_THEME_SYSTEM',
35+
},
3436
}
3537

3638
const userPreferences = (state = initialState, { type, payload }) => {
@@ -117,7 +119,6 @@ const userPreferences = (state = initialState, { type, payload }) => {
117119
consolePreferences: {
118120
...state.consolePreferences,
119121
...payload.console_preferences,
120-
console_theme: payload.console_preferences.console_theme || 'CONSOLE_THEME_SYSTEM',
121122
},
122123
}
123124
case 'SET_PAGE_SIZE':

0 commit comments

Comments
 (0)
Please sign in to comment.