diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 03:13:46 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 03:13:46 +0200 |
| commit | 94f083788d58bccb09f775ef731827d29d719d43 (patch) | |
| tree | 0bc188ef302ddfc69365521d743cb9f6293ab327 /app/client/modules/samplernn/samplernn.datasets.js | |
| parent | 2f22fd5e4a558ed9b2379565be88b9d1e1b9b7c5 (diff) | |
promises progress
Diffstat (limited to 'app/client/modules/samplernn/samplernn.datasets.js')
| -rw-r--r-- | app/client/modules/samplernn/samplernn.datasets.js | 5 |
1 files changed, 2 insertions, 3 deletions
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 <span>Loading</span> |
