Skip to content

Commit 4701465

Browse files
committed
fix: include selectedIdentifiers in bulk selection handling
1 parent 7e55bb9 commit 4701465

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/ClusterNodes/ClusterList/ClusterSelectionBody.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const ClusterSelectionBody: React.FC<ClusterSelectionBodyTypes> = ({
6161
initialSortKey: ClusterMapListSortableKeys.CLUSTER_NAME,
6262
})
6363

64-
const { handleBulkSelection, getSelectedIdentifiersCount } =
64+
const { handleBulkSelection, getSelectedIdentifiersCount, selectedIdentifiers } =
6565
useBulkSelection<BulkSelectionIdentifiersType<ClusterDetail>>()
6666

6767
const identifierCount = getSelectedIdentifiersCount()
@@ -119,6 +119,7 @@ const ClusterSelectionBody: React.FC<ClusterSelectionBodyTypes> = ({
119119
count={identifierCount}
120120
handleClearBulkSelection={handleClearBulkSelection}
121121
onChangeShowKubeConfigModal={onChangeShowKubeConfigModal}
122+
selectedIdentifiersIds={Object.keys(selectedIdentifiers).map((key) => selectedIdentifiers[key].id)}
122123
/>
123124
)
124125
}

0 commit comments

Comments
 (0)