diff --git a/src/views/credentials/viewCredentialsList.tsx b/src/views/credentials/viewCredentialsList.tsx
index 6da5458d..04120bd5 100644
--- a/src/views/credentials/viewCredentialsList.tsx
+++ b/src/views/credentials/viewCredentialsList.tsx
@@ -170,7 +170,7 @@ const CredentialsListView: React.FunctionComponent = () => {
});
const {
- selection: { selectedItems },
+ selection: { selectedItems, setSelectedItems },
currentPageItems,
numRenderedColumns,
components: { Toolbar, FilterToolbar, PaginationToolbarItem, Pagination, Table, Tbody, Td, Th, Thead, Tr }
@@ -206,7 +206,12 @@ const CredentialsListView: React.FunctionComponent = () => {
diff --git a/src/views/scans/viewScansList.tsx b/src/views/scans/viewScansList.tsx
index cb51c4fe..6b9097f0 100644
--- a/src/views/scans/viewScansList.tsx
+++ b/src/views/scans/viewScansList.tsx
@@ -123,7 +123,7 @@ const ScansListView: React.FunctionComponent = () => {
});
const {
- selection: { selectedItems },
+ selection: { selectedItems, setSelectedItems },
currentPageItems,
numRenderedColumns,
components: { Toolbar, FilterToolbar, PaginationToolbarItem, Pagination, Table, Tbody, Td, Th, Thead, Tr }
@@ -140,6 +140,7 @@ const ScansListView: React.FunctionComponent = () => {
onClick={() =>
deleteScans(selectedItems).finally(() => {
setPendingDeleteScan(undefined);
+ setSelectedItems([]);
onRefresh();
})
}
diff --git a/src/views/sources/viewSourcesList.tsx b/src/views/sources/viewSourcesList.tsx
index be3e7601..a5323879 100644
--- a/src/views/sources/viewSourcesList.tsx
+++ b/src/views/sources/viewSourcesList.tsx
@@ -228,7 +228,7 @@ const SourcesListView: React.FunctionComponent = () => {
});
const {
- selection: { selectedItems },
+ selection: { selectedItems, setSelectedItems },
currentPageItems,
numRenderedColumns,
components: { Toolbar, FilterToolbar, PaginationToolbarItem, Pagination, Table, Tbody, Td, Th, Thead, Tr }
@@ -273,7 +273,12 @@ const SourcesListView: React.FunctionComponent = () => {
diff --git a/tests/__snapshots__/code.test.ts.snap b/tests/__snapshots__/code.test.ts.snap
index aa981da1..6bb61431 100644
--- a/tests/__snapshots__/code.test.ts.snap
+++ b/tests/__snapshots__/code.test.ts.snap
@@ -31,6 +31,6 @@ exports[`General code checks should only have specific console.[warn|log|info|er
"hooks/useSourceApi.ts:255: console.error(error);",
"hooks/useStatusApi.ts:38: console.error(error);",
"views/sources/addSourceModal.tsx:106: console.error(err);",
- "views/sources/viewSourcesList.tsx:314: console.error(err);",
+ "views/sources/viewSourcesList.tsx:319: console.error(err);",
]
`;