aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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();