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 => { 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 (