aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-06-15 20:34:28 -0500
committerGitHub <noreply@github.com>2022-06-15 20:34:28 -0500
commiteabec62bcbde91b183dc99d2171af35e9cf47c85 (patch)
tree0a4ba881e94021c2da8ea52a0af2547cacd17ef9 /src/web
parentb0d7207b1cda95f5eed2139aa8d026e54632e250 (diff)
parent4c0f4861fe393fb4a4dc3bfed5b48c6375133d8a (diff)
downloadslskd-eabec62bcbde91b183dc99d2171af35e9cf47c85.tar.gz
Merge pull request #516 from slskd/search-again
Fix bug preventing Search Again button from working
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Search/Searches.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/components/Search/Searches.js b/src/web/src/components/Search/Searches.js
index fb0ce027..60a1d358 100644
--- a/src/web/src/components/Search/Searches.js
+++ b/src/web/src/components/Search/Searches.js
@@ -96,7 +96,7 @@ const Searches = ({ server }) => {
// create a new search, and optionally navigate to it to display the details
// we do this if the user clicks the search icon, or repeats an existing search
const create = async ({ search, navigate = false } = {}) => {
- const ref = inputRef.current.inputRef.current;
+ const ref = inputRef?.current?.inputRef?.current;
const searchText = search || ref.value;
const id = uuidv4();