diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 23:52:04 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 23:52:04 +0200 |
| commit | e1bc6a3331d3d2037a938541cc3fe189b7ea1484 (patch) | |
| tree | 06bb13217998b4b1f6bd2a06274771b577f1bd7e /app/client/dashboard/dashboard.component.js | |
| parent | 97b256e9d25f4196197f7944db0c4176954a0fda (diff) | |
fix filelists on dashboard
Diffstat (limited to 'app/client/dashboard/dashboard.component.js')
| -rw-r--r-- | app/client/dashboard/dashboard.component.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/app/client/dashboard/dashboard.component.js b/app/client/dashboard/dashboard.component.js index b3cf6e4..a75535f 100644 --- a/app/client/dashboard/dashboard.component.js +++ b/app/client/dashboard/dashboard.component.js @@ -51,14 +51,12 @@ class Dashboard extends Component { files={renders[key]} orderBy='date desc' fields={'name date epoch size'} - onClick={(file, e) => { - if (key === 'samplernn') { - e.preventDefault() - e.stopPropagation() - console.log('picked a file', file) - this.handlePick(file) - } - }} + onClick={key === 'samplernn' ? (file, e) => { + e.preventDefault() + e.stopPropagation() + console.log('picked a file', file) + this.handlePick(file) + } : null} /> ); |
