From 2e6d6570b5370b1eb32dd633f8909173662af7d1 Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
Date: Mon, 31 Jul 2023 14:52:22 -0700
Subject: docs: :memo: improved troubleshooting docs

---
 extension/react-app/src/components/ComboBox.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'extension/react-app/src/components/ComboBox.tsx')

diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index da559383..ba87cb9f 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -169,12 +169,12 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
       props.onInputValueChange(inputValue);
 
       if (inputValue.endsWith("@") || currentlyInContextQuery) {
-        const segs = inputValue.split("@");
+        const segs = inputValue?.split("@") || [];
 
         if (segs.length > 1) {
           // Get search results and return
           setCurrentlyInContextQuery(true);
-          const providerAndQuery = segs[segs.length - 1];
+          const providerAndQuery = segs[segs.length - 1] || "";
           const [provider, query] = providerAndQuery.split(" ");
           searchClient
             .index(SEARCH_INDEX_NAME)
-- 
cgit v1.2.3-70-g09d2

