Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: delete multiple resources

Jerry Wang7b5c13b71226
diff --git a/web/src/pages/ResourcesDashboard.tsx b/web/src/pages/ResourcesDashboard.tsx
index 8fcbae707..dc4ec4d4a 100644
--- a/web/src/pages/ResourcesDashboard.tsx
+++ b/web/src/pages/ResourcesDashboard.tsx
@@ -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([]);
},
});
}