diff --git a/src/pages/DataSamplesPage.tsx b/src/pages/DataSamplesPage.tsx index a6500714e..2fad98f13 100644 --- a/src/pages/DataSamplesPage.tsx +++ b/src/pages/DataSamplesPage.tsx @@ -51,7 +51,7 @@ const DataSamplesPage = () => { }, [addNewAction, actions]); useHotkeys( keyboardShortcuts.addAction, - handleAddNewAction, + isAddNewActionDisabled ? () => {} : handleAddNewAction, globalShortcutConfig ); const focusActionNameInput = useCallback(