Skip to content

Commit

Permalink
persist cluster on refresh (#4329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Feb 26, 2024
1 parent f7ec352 commit 19640a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard/src/main/home/sidebar/ClusterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,14 @@ const ClusterList: React.FC = (props) => {
);
if (cluster) {
// TODO: remove the need for this conversion
const clusterToOldType: ClusterType = {
// TODO: project_id is required for the current cluster to persist on page refresh - find out why
const clusterToOldType: ClusterType & { project_id: number } = {
id: cluster.id,
name: cluster.name,
vanity_name: cluster.vanity_name,
cloud_provider: cluster.cloud_provider.name,
status: cluster.status,
project_id: currentProject.id,
};
setCurrentCluster?.(clusterToOldType);
pushFiltered(props, "/apps", ["project_id"], {});
Expand Down

0 comments on commit 19640a3

Please sign in to comment.