diff options
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> |
