Skip to content

Commit

Permalink
BUGFIX: Prevent error when selecting subcommand in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Apr 28, 2023
1 parent 15a736d commit 275d46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/commandbar/src/components/SearchBox/SearchBox.tsx
Expand Up @@ -22,7 +22,7 @@ const SearchBox: React.FC = () => {
actions.UPDATE_COMMAND_QUERY(e.target.value);

// Execute command after a delay if it's not a manual command
if (!state.commands.value[state.resultCommandId.value].executeManually) {
if (!state.commands.value[state.resultCommandId.value]?.executeManually) {
if (updateResultsTimer) {
clearTimeout(updateResultsTimer);
}
Expand Down

0 comments on commit 275d46e

Please sign in to comment.