summaryrefslogtreecommitdiff
path: root/frontend/app/views/page/components/tile.new.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-09-26 15:30:15 +0200
committerJules Laplace <julescarbon@gmail.com>2020-09-26 15:30:15 +0200
commitd260e3a65bdec981fd98db8a2352caa9bef9ae55 (patch)
treece04d69a1ed647c89b5dab93391c383d6beff14f /frontend/app/views/page/components/tile.new.js
parenta17b76ac75f506f5da6fe8adf9c36632b60d4226 (diff)
finalizing fixing refactor!!
Diffstat (limited to 'frontend/app/views/page/components/tile.new.js')
-rw-r--r--frontend/app/views/page/components/tile.new.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/app/views/page/components/tile.new.js b/frontend/app/views/page/components/tile.new.js
index fb609a5..b491fdd 100644
--- a/frontend/app/views/page/components/tile.new.js
+++ b/frontend/app/views/page/components/tile.new.js
@@ -35,7 +35,7 @@ class TileNew extends Component {
graph={this.props.graph.show.res}
page={this.props.page.show.res}
initialData={null}
- sortOrder={this.props.page.show.res.tiles.length}
+ sortOrder={this.props.page.show.res.tiles ? this.props.page.show.res.tiles.length : []}
onSubmit={this.handleSubmit.bind(this)}
/>
)