fix: delete multiple resources

* fix: delete multiple resources, close #1986

* chore: remove useless comment
pull/1977/head
Jerry Wang 2 years ago committed by GitHub
parent 8bcc2bd715
commit 7b5c13b712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,9 +94,11 @@ const ResourcesDashboard = () => {
style: "warning",
dialogName: "delete-resource-dialog",
onConfirm: async () => {
selectedList.map(async (resourceId: ResourceId) => {
for (const resourceId of selectedList) {
await resourceStore.deleteResourceById(resourceId);
});
}
setSelectedList([]);
},
});
}

Loading…
Cancel
Save