diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-03 23:17:21 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-03 23:17:21 +0200 |
| commit | 1070d4b87f664e85ff7defa530727c97337d16db (patch) | |
| tree | 471bee57ad263527540a70f5e09be5dffeac44dd /frontend/views/page/components/tile.new.js | |
| parent | 0325476d87d102f817108112772d39a64b5d1419 (diff) | |
saving nodes!!
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)} /> ) |
