diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-02 15:14:18 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-02 15:14:18 +0700 |
| commit | db5d67db219a6672848115b556fd572cdba7c60c (patch) | |
| tree | f9eadd9e9e4c9181c9d596a38bb90525d8fcb204 /src/core/components/elements/Navbar/Search.jsx | |
| parent | 988badbf4dfd9bf493ff37fd9e5ac81ed34adb14 (diff) | |
fix product
Diffstat (limited to 'src/core/components/elements/Navbar/Search.jsx')
| -rw-r--r-- | src/core/components/elements/Navbar/Search.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/components/elements/Navbar/Search.jsx b/src/core/components/elements/Navbar/Search.jsx index 54eecf84..77510773 100644 --- a/src/core/components/elements/Navbar/Search.jsx +++ b/src/core/components/elements/Navbar/Search.jsx @@ -13,7 +13,7 @@ const Search = () => { const loadSuggestion = useCallback(() => { if (query && document.activeElement == queryRef.current) { searchSuggestApi({ query }).then((response) => { - setSuggestions(response.data.suggestions) + setSuggestions(response.data?.suggestions || []) }) } else { setSuggestions([]) |
