fix: delete multiple resources

* fix: delete multiple resources, close #1986

* chore: remove useless comment
This commit is contained in:
Jerry Wang 2023-07-19 21:36:02 +08:00 committed by GitHub
parent 8bcc2bd715
commit 7b5c13b712
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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([]);
},
});
}