From 4c0f4861fe393fb4a4dc3bfed5b48c6375133d8a Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 15 Jun 2022 20:20:47 -0500 Subject: fix bug preventing Search Again button from working --- src/web/src/components/Search/Searches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3