Преглед изворни кода

sort between cluster fixed (hopefully)

Sean Rhee пре 5 година
родитељ
комит
18c13f059b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      dashboard/src/main/home/cluster-dashboard/ClusterDashboard.tsx

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/ClusterDashboard.tsx

@@ -34,7 +34,7 @@ export default class ClusterDashboard extends Component<PropsType, StateType> {
     localStorage.setItem("SortType", this.state.sortType);
     // Reset namespace filter and close expanded chart on cluster change
     if (prevProps.currentCluster !== this.props.currentCluster) {
-      this.setState({ namespace: 'default', sortType: 'Newest', currentChart: null });
+      this.setState({ namespace: 'default', sortType: (localStorage.getItem("SortType") ? localStorage.getItem('SortType') : 'Newest'), currentChart: null });
     }
   }