diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 16:42:37 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 16:42:37 +0200 |
| commit | 5703450887a91e18b592d0b8ce7ea0e87c44088d (patch) | |
| tree | a5fa32d273ae35adc8bdcc09416dc757501ac0ca /app/client/modules/samplernn/samplernn.show.js | |
| parent | b0d534d174def2940287745535726c7e878dcbcc (diff) | |
delete dataset if all the files go away
Diffstat (limited to 'app/client/modules/samplernn/samplernn.show.js')
| -rw-r--r-- | app/client/modules/samplernn/samplernn.show.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/client/modules/samplernn/samplernn.show.js b/app/client/modules/samplernn/samplernn.show.js index 982ec53..0e6db32 100644 --- a/app/client/modules/samplernn/samplernn.show.js +++ b/app/client/modules/samplernn/samplernn.show.js @@ -65,7 +65,7 @@ class SampleRNNShow extends Component { const { fileLookup } = samplernn.data const input = fileLookup[dataset.input[0]] if (! input) return null - if (input.name.match(/(gif|jpe?g|png)$/i)) return null + if (input.name && input.name.match(/(gif|jpe?g|png)$/i)) return null return ( <div> <div class={'actions'}> |
