Bulk Delete 2
This commit is contained in:
@@ -433,7 +433,14 @@ export default function Clusters() {
|
||||
}}
|
||||
onBulkDelete={async (ids: number[]) => {
|
||||
const result = await bulkDeleteClusters(ids);
|
||||
loadClusters();
|
||||
// Clear selection first
|
||||
setSelectedIds([]);
|
||||
// Reset to page 1 if we deleted all items on current page
|
||||
if (currentPage > 1 && clusters.length <= ids.length) {
|
||||
setCurrentPage(1);
|
||||
}
|
||||
// Always reload data to refresh the table
|
||||
await loadClusters();
|
||||
return result;
|
||||
}}
|
||||
onBulkExport={handleBulkExport}
|
||||
|
||||
Reference in New Issue
Block a user