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!
This commit is contained in:
Emi Matchu 2021-05-04 18:56:00 -07:00
parent 8da664227f
commit aa0a66fe6d

View file

@ -104,7 +104,7 @@ function ItemSearchPageResults({ query: latestQuery, offset }) {
// When the query is empty, clear the debounced query immediately too! That // When the query is empty, clear the debounced query immediately too! That
// will give us fast feedback when the search field clears. // 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. // NOTE: This query should always load ~instantly, from the client cache.