فهرست منبع

Hide bad redirect

Jo Chuang 5 سال پیش
والد
کامیت
0f73c0d606
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 1
      dashboard/src/main/Main.tsx
  2. 2 1
      dashboard/src/main/home/Home.tsx

+ 1 - 1
dashboard/src/main/Main.tsx

@@ -93,7 +93,7 @@ export default class Main extends Component<PropsType, StateType> {
 
 
         // TODO: Possible template this into a map from url to routed home
         // TODO: Possible template this into a map from url to routed home
         {...authedUrls.map(route =>
         {...authedUrls.map(route =>
-            <Route path={`/${route}`} render={() => {
+            <Route key={route} path={`/${route}`} render={() => {
             if (this.state.isLoggedIn && this.state.initialized) {
             if (this.state.isLoggedIn && this.state.initialized) {
               return (
               return (
                 <Home 
                 <Home 

+ 2 - 1
dashboard/src/main/home/Home.tsx

@@ -79,7 +79,8 @@ class Home extends Component<PropsType, StateType> {
         this.props.history.push("integrations");
         this.props.history.push("integrations");
         this.setState({ sidebarReady: true, ghRedirect: false });
         this.setState({ sidebarReady: true, ghRedirect: false });
       } else {
       } else {
-        this.props.history.push("dashboard");
+        // TODO: figure out when exactly in flow we need to send user to dashboard
+        // this.props.history.push("dashboard");
         this.setState({ sidebarReady: true });
         this.setState({ sidebarReady: true });
       }
       }
     });
     });