Skip to content

Commit

Permalink
Merge pull request #234 from Kitware/create-project-fix
Browse files Browse the repository at this point in the history
other project fixes, label fixes
  • Loading branch information
TristanWright committed Mar 15, 2016
2 parents 4ab9320 + ff73cca commit 33d3dda
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/Project/New/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion src/workflows/pyfr/common/steps/Simulation/Start/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default React.createClass({
return (
<div>
<section className={formStyle.group}>
<label className={formStyle.label}>Region</label>
<label className={formStyle.label}>Server Type</label>
<select
className={formStyle.input}
value={this.state.serverType}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default React.createClass({
return (
<div>
<section className={formStyle.group}>
<label className={formStyle.label}>Region</label>
<label className={formStyle.label}>Server Type</label>
<select className={formStyle.input} value={this.state.serverType} onChange={ this.setServerType }>
<option value="Traditional">Traditional</option>
<option value="EC2">EC2</option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default React.createClass({
return (
<div>
<section className={formStyle.group}>
<label className={formStyle.label}>Region</label>
<label className={formStyle.label}>Server Type</label>
<select
className={formStyle.input}
value={this.state.serverType}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default React.createClass({
return (
<div>
<section className={formStyle.group}>
<label className={formStyle.label}>Region</label>
<label className={formStyle.label}>Server Type</label>
<select
className={formStyle.input}
value={this.state.serverType}
Expand Down

0 comments on commit 33d3dda

Please sign in to comment.