diff options
Diffstat (limited to 'app/client/modules/samplernn/samplernn.show.js')
| -rw-r--r-- | app/client/modules/samplernn/samplernn.show.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/client/modules/samplernn/samplernn.show.js b/app/client/modules/samplernn/samplernn.show.js index cd1cd34..9c2495b 100644 --- a/app/client/modules/samplernn/samplernn.show.js +++ b/app/client/modules/samplernn/samplernn.show.js @@ -21,7 +21,9 @@ const samplernnModule = { class SampleRNNShow extends Component { render(){ const { samplernn, match, history } = this.props - const { folder } = samplernn || {} + const { folderLookup } = (samplernn.data || {}) + const folder = (folderLookup || {})[samplernn.folder_id] || {} + console.log(folder, samplernn.folder_id) return ( <div className='app'> <div class='heading'> @@ -37,6 +39,7 @@ class SampleRNNShow extends Component { } <SampleRNNDatasets id={this.props.match.params.id || localStorage.getItem('samplernn.last_id')} + folder={folder} onPickFile={(file, e) => { e.preventDefault() e.stopPropagation() |
