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.show.js | |
| parent | 2f22fd5e4a558ed9b2379565be88b9d1e1b9b7c5 (diff) | |
promises progress
Diffstat (limited to 'app/client/modules/samplernn/samplernn.show.js')
| -rw-r--r-- | app/client/modules/samplernn/samplernn.show.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/client/modules/samplernn/samplernn.show.js b/app/client/modules/samplernn/samplernn.show.js index f16758a..8e271fc 100644 --- a/app/client/modules/samplernn/samplernn.show.js +++ b/app/client/modules/samplernn/samplernn.show.js @@ -20,13 +20,12 @@ class SampleRNNShow extends Component { render(){ const { samplernn, match, history } = this.props const { folder } = samplernn || {} - console.log(folder) return ( <div className='app'> <div class='heading'> <h1>{folder ? folder.name : 'Loading...'}</h1> </div> - {folder && folder.name !== 'unsorted' && + {folder && folder.name && folder.name !== 'unsorted' && <DatasetForm title='Add Files' module={samplernnModule} @@ -35,7 +34,7 @@ class SampleRNNShow extends Component { /> } <SampleRNNDatasets - id={this.props.match.params.id} + id={this.props.match.params.id || localStorage.getItem('samplernn.last_id')} /> </div> ) @@ -44,6 +43,7 @@ class SampleRNNShow extends Component { const mapStateToProps = state => ({ samplernn: state.module.samplernn, + dataset: state.dataset, }) const mapDispatchToProps = (dispatch, ownProps) => ({ |
