trash
This commit is contained in:
@@ -3227,7 +3227,7 @@ const AppLayout = () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
documentIds.map((documentId) => api.delete(`/documents/${documentId}`)),
|
documentIds.map((documentId) => api.post(`/documents/${documentId}/trash`)),
|
||||||
);
|
);
|
||||||
|
|
||||||
removeDocumentsFromCaches(documentIds);
|
removeDocumentsFromCaches(documentIds);
|
||||||
|
|||||||
Reference in New Issue
Block a user