From 94f083788d58bccb09f775ef731827d29d719d43 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 4 Jun 2018 03:13:46 +0200 Subject: promises progress --- app/client/modules/samplernn/samplernn.datasets.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/client/modules/samplernn/samplernn.datasets.js') diff --git a/app/client/modules/samplernn/samplernn.datasets.js b/app/client/modules/samplernn/samplernn.datasets.js index 0b7ccb8..683d44a 100644 --- a/app/client/modules/samplernn/samplernn.datasets.js +++ b/app/client/modules/samplernn/samplernn.datasets.js @@ -21,8 +21,8 @@ class SampleRNNDatasets extends Component { this.pickFile = this.pickFile.bind(this) } componentWillMount(){ - const id = this.props.id || this.props.match.params.id || localStorage.getItem('samplernn.last_id') - console.log('load dataset:', id) + const id = this.props.id + console.log('load dataset:', id, this.props.id) const { match, samplernn, actions } = this.props if (id === 'new') return if (id) { @@ -60,7 +60,6 @@ class SampleRNNDatasets extends Component { } render(){ const { samplernn, match, history } = this.props - const id = this.props.id || localStorage.getItem('samplernn.last_id') if (samplernn.loading) { // console.log('loading') return Loading -- cgit v1.2.3-70-g09d2