kaori %!s(int64=3) %!d(string=hai) anos
pai
achega
5a9f5c4db3
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/app/src/components/PageList/PageListItemL.tsx

+ 3 - 1
packages/app/src/components/PageList/PageListItemL.tsx

@@ -156,13 +156,15 @@ const PageListItemLSubstance: ForwardRefRenderFunction<ISelectable, Props> = (pr
 
     const putBackedHandler = async(path) => {
       try {
-        await unlink(`/trash${path}`);
+        // pageData path should be `/trash/fuga` (`/trash` should be included to prefix)
+        await unlink(pageData.path);
       }
       catch (err) {
         toastError(err);
       }
 
       if (onPagePutBacked != null) {
+        // This path should be `/fuga` ( `/trash` is not included to prefix)
         onPagePutBacked(path);
       }
     };