Skip to content

Commit

Permalink
Merge pull request #11511 from richard-cox/fix-perf-nav
Browse files Browse the repository at this point in the history
Fix navigation from Global Settings --> Performance to any Cluster Explorer custom list
  • Loading branch information
richard-cox authored Jul 23, 2024
2 parents ba26cf5 + b993d88 commit 9171bfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/pages/c/_cluster/settings/performance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
data() {
return {
uiPerfSetting: DEFAULT_PERF_SETTING,
uiPerfSetting: null,
authUserTTL: null,
bannerVal: {},
value: {},
Expand Down
4 changes: 3 additions & 1 deletion shell/utils/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,7 @@ export const getPerformanceSetting = (rootGetters: Record<string, (arg0: string,
}

// Start with the default and overwrite the values from the setting - ensures we have defaults for newly added options
return Object.assign(DEFAULT_PERF_SETTING, perfSetting || {});
const safeDefaults = Object.assign({}, DEFAULT_PERF_SETTING);

return Object.assign(safeDefaults, perfSetting || {});
};

0 comments on commit 9171bfe

Please sign in to comment.