summaryrefslogtreecommitdiff
path: root/frontend/app
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
parenta17b76ac75f506f5da6fe8adf9c36632b60d4226 (diff)
finalizing fixing refactor!!
Diffstat (limited to 'frontend/app')
-rw-r--r--frontend/app/api/index.js3
-rw-r--r--frontend/app/router.js (renamed from frontend/app/app.js)0
-rw-r--r--frontend/app/views/page/components/tile.new.js2
3 files changed, 1 insertions, 4 deletions
diff --git a/frontend/app/api/index.js b/frontend/app/api/index.js
index c3d0aa4..41cf624 100644
--- a/frontend/app/api/index.js
+++ b/frontend/app/api/index.js
@@ -1,5 +1,4 @@
import { crud_actions } from 'app/api/crud.actions'
-import * as util from 'app/api/utils'
/*
for our crud events, create corresponding actions
@@ -14,8 +13,6 @@ so you can do ...
folderActions.upload(12, form_data)
*/
-export { util }
-
export const actions = [
'graph',
'page',
diff --git a/frontend/app/app.js b/frontend/app/router.js
index 8dbbd0f..8dbbd0f 100644
--- a/frontend/app/app.js
+++ b/frontend/app/router.js
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)}
/>
)