瀏覽代碼

Merge branch 'master' into belanger/hotfix-ecr-permissions

Alexander Belanger 4 年之前
父節點
當前提交
8918c4e050
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      dashboard/src/main/home/sidebar/Sidebar.tsx

+ 1 - 7
dashboard/src/main/home/sidebar/Sidebar.tsx

@@ -193,13 +193,7 @@ class Sidebar extends Component<PropsType, StateType> {
             Launch
             Launch
           </NavButton>
           </NavButton>
           {currentProject && currentProject.managed_infra_enabled && (
           {currentProject && currentProject.managed_infra_enabled && (
-            <NavButton
-              onClick={() =>
-                currentView !== "infrastructure" &&
-                pushFiltered(this.props, "/infrastructure", ["project_id"])
-              }
-              selected={currentView === "infrastructure"}
-            >
+            <NavButton to={"/infrastructure"}>
               <i className="material-icons">build_circle</i>
               <i className="material-icons">build_circle</i>
               Infrastructure
               Infrastructure
             </NavButton>
             </NavButton>