aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/src/components/Search/Response.js2
-rw-r--r--src/web/src/components/Transfers/TransferList.js2
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