diff options
Diffstat (limited to 'app/client/dashboard')
| -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} /> ); |
