🚑 hotfix for react error

This commit is contained in:
Nate Sesti 2023-11-03 12:03:28 -07:00
parent d1dfaac5b9
commit 12a7821483

View file

@ -1519,7 +1519,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
<span
onClick={() => {
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"}
</span>