From 0f1a5efdcd4eea7d78d3d4d1fa08e40d3b50be29 Mon Sep 17 00:00:00 2001 From: MiriSafra Date: Sun, 22 Sep 2024 09:56:14 +0300 Subject: [PATCH] fix condition of disable status Signed-off-by: MiriSafra --- .../applications/applications-table/applications-table.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/app/pages/applications/applications-table/applications-table.tsx b/client/src/app/pages/applications/applications-table/applications-table.tsx index 6d2bc93a0..5a6061ae9 100644 --- a/client/src/app/pages/applications/applications-table/applications-table.tsx +++ b/client/src/app/pages/applications/applications-table/applications-table.tsx @@ -578,10 +578,11 @@ export const ApplicationsTable: React.FC = () => { ? [ + isDisabled={ + !selectedRows.some((application: DecoratedApplication) => isTaskCancellable(application) - )} + ) + } onClick={() => { handleCancelBulkAnalysis(); }}