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

modify the conditional branching before executing the process

WNomunomu преди 1 година
родител
ревизия
af77550c4f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      apps/app/src/server/service/page/index.ts

+ 1 - 1
apps/app/src/server/service/page/index.ts

@@ -4109,7 +4109,7 @@ class PageService implements IPageService {
     }
 
     // 3. Update scopes for descendants
-    if (options.overwriteScopesOfDescendants) {
+    if (options.overwriteScopesOfDescendants && shouldBeOnTree) {
       await this.applyScopesToDescendantsWithStream(currentPage, user);
     }