Преглед на файлове

fix: app data check error in write

KernelDeimos преди 4 месеца
родител
ревизия
5ef75e5df3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/backend/src/filesystem/hl_operations/hl_write.js

+ 1 - 1
src/backend/src/filesystem/hl_operations/hl_write.js

@@ -302,7 +302,7 @@ class HLWrite extends HLFilesystemOperation {
         this.checkpoint('before thumbnail');
 
         let thumbnail_promise = new TeePromise();
-        if ( await destination.isAppDataDirectory() || values.no_thumbnail ) {
+        if ( await parent.isAppDataDirectory() || values.no_thumbnail ) {
             thumbnail_promise.resolve(undefined);
         } else (async () => {
             const reason = await (async () => {