Przeglądaj źródła

install github app button (#2809)

jusrhee 3 lat temu
rodzic
commit
b7d5c4adb0
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      dashboard/src/main/home/sidebar/Sidebar.tsx

+ 2 - 2
dashboard/src/main/home/sidebar/Sidebar.tsx

@@ -102,7 +102,7 @@ class Sidebar extends Component<PropsType, StateType> {
 
   renderProjectContents = () => {
     let { currentView } = this.props;
-    let { currentProject, user } = this.context;
+    let { currentProject, user, currentCluster, hasFinishedOnboarding } = this.context;
     if (currentProject) {
       return (
         <ScrollWrapper>
@@ -148,7 +148,7 @@ class Sidebar extends Component<PropsType, StateType> {
 
           <br />
 
-          {this.context.hasFinishedOnboarding && (
+          {currentCluster && (
             <>
               <SidebarLabel>
                 {currentProject.capi_provisioner_enabled ? (