diff options
| author | Lev Gorodetskiy <github@droserasprout.space> | 2022-04-20 18:45:52 +0400 |
|---|---|---|
| committer | Lev Gorodetskiy <github@droserasprout.space> | 2022-04-21 14:41:53 +0400 |
| commit | 64587b7c35cb623803dbc24657808724abe342a9 (patch) | |
| tree | dd6d665339cd6ed6b069d3110b543782bac4f910 /src | |
| parent | 2de61adb4e89fdbf728de26cd85c8a9020d4231c (diff) | |
| download | slskd-64587b7c35cb623803dbc24657808724abe342a9.tar.gz | |
Lint
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/Search/Response.js | 2 | ||||
| -rw-r--r-- | src/web/src/components/Transfers/TransferList.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/components/Search/Response.js b/src/web/src/components/Search/Response.js index b1b8b871..67de2b72 100644 --- a/src/web/src/components/Search/Response.js +++ b/src/web/src/components/Search/Response.js @@ -87,7 +87,7 @@ class Response extends Component { <Card.Meta className='result-meta'> <span>Upload Speed: {formatBytes(response.uploadSpeed)}/s, Free Upload Slot: {free ? 'YES' : 'NO'}, Queue Length: {response.queueLength}</span> </Card.Meta> - {(!isFolded && Object.keys(tree) || []).map((dir, i) => + {((!isFolded && Object.keys(tree)) || []).map((dir, i) => <FileList key={i} directoryName={dir} diff --git a/src/web/src/components/Transfers/TransferList.js b/src/web/src/components/Transfers/TransferList.js index 9ed8832b..e69c9647 100644 --- a/src/web/src/components/Transfers/TransferList.js +++ b/src/web/src/components/Transfers/TransferList.js @@ -1,4 +1,4 @@ -import React, { Component, useState } from 'react'; +import React, { Component } from 'react'; import { Checkbox |
