From aa0a66fe6d3cb57bd1068fda7036aa0063f7fd08 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 4 May 2021 18:56:00 -0700 Subject: [PATCH] Oops, fix a crasher on item search page Crashes on clearing the search box. I really thought I fixed this when I refactored `forceReset` to be a function, but I guess I missed it when I went back-and-forth deciding whether to actually do the refactor! --- src/app/ItemSearchPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/ItemSearchPage.js b/src/app/ItemSearchPage.js index bac5be1..85b32eb 100644 --- a/src/app/ItemSearchPage.js +++ b/src/app/ItemSearchPage.js @@ -104,7 +104,7 @@ function ItemSearchPageResults({ query: latestQuery, offset }) { // When the query is empty, clear the debounced query immediately too! That // will give us fast feedback when the search field clears. - forceReset: searchQueryIsEmpty(latestQuery), + forceReset: () => searchQueryIsEmpty(latestQuery), }); // NOTE: This query should always load ~instantly, from the client cache.