diff options
Diffstat (limited to 'extension/react-app')
-rw-r--r-- | extension/react-app/src/components/ComboBox.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx index 12cd91a2..c08c05de 100644 --- a/extension/react-app/src/components/ComboBox.tsx +++ b/extension/react-app/src/components/ComboBox.tsx @@ -439,9 +439,11 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { // Handle slash commands dispatch(setTakenActionTrue(null)); setItems( - availableSlashCommands?.filter((slashCommand) => - slashCommand.name.toLowerCase().startsWith(inputValue.toLowerCase()) - ) || [] + availableSlashCommands?.filter((slashCommand) => { + const sc = slashCommand.name.toLowerCase(); + const iv = inputValue.toLowerCase(); + return sc.startsWith(iv) && sc !== iv; + }) || [] ); }, [ |