From ce57f9a67aeac157f97c4d0809b82cea3ffbe17b Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 7 Apr 2021 20:24:45 -0700 Subject: [PATCH] Fix crash on pressing Escape in item search --- src/app/WardrobePage/SearchToolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/WardrobePage/SearchToolbar.js b/src/app/WardrobePage/SearchToolbar.js index e4f2d55..1641eb8 100644 --- a/src/app/WardrobePage/SearchToolbar.js +++ b/src/app/WardrobePage/SearchToolbar.js @@ -290,7 +290,7 @@ function SearchToolbar({ setSuggestions([]); return; } - onChange(null); + onChange(emptySearchQuery); e.target.blur(); } else if (e.key === "ArrowDown") { if (suggestions.length > 0) {