From fe2880a5b3a3be7c24563a462c5c1000b59e2669 Mon Sep 17 00:00:00 2001 From: TristanWright Date: Mon, 14 Mar 2016 22:47:47 -0600 Subject: [PATCH 1/2] fix(workflows): label fix --- src/workflows/pyfr/common/steps/Simulation/Start/index.js | 2 +- src/workflows/pyfr/common/steps/Visualization/Start/index.js | 2 +- src/workflows/pyfr/components/steps/Simulation/Start/index.js | 2 +- .../visualizer/components/steps/Visualization/Start/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/workflows/pyfr/common/steps/Simulation/Start/index.js b/src/workflows/pyfr/common/steps/Simulation/Start/index.js index 0e935eb9..f324ffe0 100644 --- a/src/workflows/pyfr/common/steps/Simulation/Start/index.js +++ b/src/workflows/pyfr/common/steps/Simulation/Start/index.js @@ -171,7 +171,7 @@ export default React.createClass({ return (
- + diff --git a/src/workflows/pyfr/components/steps/Simulation/Start/index.js b/src/workflows/pyfr/components/steps/Simulation/Start/index.js index a7c27d56..9771dc8c 100644 --- a/src/workflows/pyfr/components/steps/Simulation/Start/index.js +++ b/src/workflows/pyfr/components/steps/Simulation/Start/index.js @@ -133,7 +133,7 @@ export default React.createClass({ return (
- + Date: Mon, 14 Mar 2016 22:48:28 -0600 Subject: [PATCH 2/2] fix(project): fixed .then callback to creating new projects --- src/pages/Project/New/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Project/New/index.js b/src/pages/Project/New/index.js index 5ea02d0a..452bb811 100644 --- a/src/pages/Project/New/index.js +++ b/src/pages/Project/New/index.js @@ -48,7 +48,7 @@ export default React.createClass({ client.saveProject(project, attachements) .then(resp => { - var projId = Array.isArray(resp) ? resp[0].data._id : resp.data._id; + var projId = Array.isArray(resp) ? resp[resp.length - 1]._id : resp._id; this.context.router.push(`/View/Project/${projId}`); }) .catch(err => {