Skip to content

Commit 73da64e

Browse files
committed
Return all documents on re-render
When compiling a single document out of a large set we need to make sure the documents are returned, the root entry is already set. Menu changes are not supported for now.
1 parent a9d9611 commit 73da64e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/guides/src/Compiler/Passes/GlobalMenuPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function run(array $documents, CompilerContextInterface $compilerContext)
7070
}
7171

7272
if ($rootDocument === null) {
73-
return [];
73+
return $documents;
7474
}
7575

7676
$menuNodes = [];

0 commit comments

Comments
 (0)