aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-06-15 20:20:47 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-06-15 20:20:47 -0500
commit4c0f4861fe393fb4a4dc3bfed5b48c6375133d8a (patch)
tree0a4ba881e94021c2da8ea52a0af2547cacd17ef9 /src
parentb0d7207b1cda95f5eed2139aa8d026e54632e250 (diff)
downloadslskd-4c0f4861fe393fb4a4dc3bfed5b48c6375133d8a.tar.gz
fix bug preventing Search Again button from working
Diffstat (limited to 'src')
-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();