Skip to content

Commit

Permalink
fix: request for settings is made without a cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
vitshev committed Mar 20, 2024
1 parent 5977548 commit 5243dc5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ui/src/ui/containers/ClusterPage/ClusterPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ class ClusterPage extends Component {
} = this.props;

return Promise.resolve().then(() => {
initClusterParams(cluster);
updateTitle({cluster});

// todo: get rid of redirectToBetaSwitched setting.
// It`s exist for set default value of redirectToBeta setting, when settings document is empty yet.
// Set redirectToBeta on server after get all user settings (home.js). Or get rid of this logic at all.
Expand All @@ -162,11 +165,9 @@ class ClusterPage extends Component {
setSetting(SettingName.DEVELOPMENT.REDIRECT_TO_BETA, NAMESPACES.DEVELOPMENT, true);
}

initClusterParams(cluster);
this._initMenuCollection('cluster');
this._initMenuCollection('page');
trackVisit('cluster', cluster);
updateTitle({cluster});
});
};

Expand Down

0 comments on commit 5243dc5

Please sign in to comment.