Browse Source

fix: app data check error in write

KernelDeimos 4 months ago
parent
commit
5ef75e5df3
1 changed files with 1 additions and 1 deletions
  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 () => {