diff options
Diffstat (limited to 'frontend/views/page/components/tile.new.js')
| -rw-r--r-- | frontend/views/page/components/tile.new.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/views/page/components/tile.new.js b/frontend/views/page/components/tile.new.js index 74d8e96..4649904 100644 --- a/frontend/views/page/components/tile.new.js +++ b/frontend/views/page/components/tile.new.js @@ -14,10 +14,10 @@ class TileNew extends Component { actions.tile.create(data) .then(res => { console.log(res) - const graph = this.props.graph.show.res - if (res.res && res.res.id) { - history.push('/' + graph.path + '/' + res.res.path) - } + // const graph = this.props.graph.show.res + // if (res.res && res.res.id) { + // history.push('/' + graph.path + '/' + res.res.path) + // } }) .catch(err => { console.error('error') @@ -30,7 +30,7 @@ class TileNew extends Component { isNew graph={this.props.graph.show.res} page={this.props.page.show.res} - data={null} + initialData={null} onSubmit={this.handleSubmit.bind(this)} /> ) |
