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:
parent
8da664227f
commit
aa0a66fe6d
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue