Explorar o código

Merge pull request #261 from porter-dev/beta.3.lift-to-routes

Hotfix for broken redirect
abelanger5 %!s(int64=5) %!d(string=hai) anos
pai
achega
733ef23075
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dashboard/src/main/home/Home.tsx

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

@@ -94,7 +94,7 @@ class Home extends Component<PropsType, StateType> {
         console.log(err);
       } else if (res.data) {
         if (res.data.length === 0) {
-          <Redirect to="new-project"></Redirect>
+          this.props.history.push("new-project");
         } else if (res.data.length > 0 && !currentProject) {
           setProjects(res.data);