diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-09-26 15:30:15 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-09-26 15:30:15 +0200 |
| commit | d260e3a65bdec981fd98db8a2352caa9bef9ae55 (patch) | |
| tree | ce04d69a1ed647c89b5dab93391c383d6beff14f /frontend | |
| parent | a17b76ac75f506f5da6fe8adf9c36632b60d4226 (diff) | |
finalizing fixing refactor!!
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/app/api/index.js | 3 | ||||
| -rw-r--r-- | frontend/app/router.js (renamed from frontend/app/app.js) | 0 | ||||
| -rw-r--r-- | frontend/app/views/page/components/tile.new.js | 2 | ||||
| -rw-r--r-- | frontend/index.js | 2 |
4 files changed, 2 insertions, 5 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)} /> ) diff --git a/frontend/index.js b/frontend/index.js index 393282c..8daf531 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -4,7 +4,7 @@ import { Provider } from 'react-redux' import Router from 'app/router' -import { store, history } from '/store' +import { store, history } from 'app/store' const container = document.createElement('div') container.classList.add('container') |
