kaori 3 лет назад
Родитель
Сommit
5a9f5c4db3
1 измененных файлов с 3 добавлено и 1 удалено
  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) => {
     const putBackedHandler = async(path) => {
       try {
       try {
-        await unlink(`/trash${path}`);
+        // pageData path should be `/trash/fuga` (`/trash` should be included to prefix)
+        await unlink(pageData.path);
       }
       }
       catch (err) {
       catch (err) {
         toastError(err);
         toastError(err);
       }
       }
 
 
       if (onPagePutBacked != null) {
       if (onPagePutBacked != null) {
+        // This path should be `/fuga` ( `/trash` is not included to prefix)
         onPagePutBacked(path);
         onPagePutBacked(path);
       }
       }
     };
     };