diff --git a/gui/src/components/ComboBox.tsx b/gui/src/components/ComboBox.tsx index 84ccce46f..ead552366 100644 --- a/gui/src/components/ComboBox.tsx +++ b/gui/src/components/ComboBox.tsx @@ -1519,7 +1519,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { { const inputValue = downshiftProps.inputValue; - if (inputValue.startsWith("/codebase")) { + if (inputValue?.startsWith("/codebase")) { downshiftProps.setInputValue( inputValue.replace("/codebase ", "") ); @@ -1530,7 +1530,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { }} className={"hover:underline cursor-pointer float-right"} > - {downshiftProps.inputValue.startsWith("/codebase") + {downshiftProps.inputValue?.startsWith("/codebase") ? "Using codebase" : "⌘ ⏎ Use codebase"}