Skip to content

Commit

Permalink
Disable add action shortcut when btn is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed Dec 3, 2024
1 parent 532d33f commit c9251b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/DataSamplesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const DataSamplesPage = () => {
}, [addNewAction, actions]);
useHotkeys(
keyboardShortcuts.addAction,
handleAddNewAction,
isAddNewActionDisabled ? () => {} : handleAddNewAction,
globalShortcutConfig
);
const focusActionNameInput = useCallback(
Expand Down

0 comments on commit c9251b8

Please sign in to comment.