Jelajahi Sumber

Merge branch 'sean-testing' of https://github.com/porter-dev/porter into beta.3.integration-frontend

jusrhee 5 tahun lalu
induk
melakukan
36afc1aca0
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      dashboard/src/main/Main.tsx

+ 3 - 0
dashboard/src/main/Main.tsx

@@ -55,6 +55,9 @@ export default class Main extends Component<PropsType, StateType> {
   }
   }
 
 
   handleLogOut = () => {
   handleLogOut = () => {
+    // Clears local storage for proper rendering of clusters
+    localStorage.clear();
+
     this.context.clearContext();
     this.context.clearContext();
     this.setState({ isLoggedIn: false, initialized: true });
     this.setState({ isLoggedIn: false, initialized: true });
   }
   }