elegance-js 1.11.7 → 1.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/page_compiler.mjs +3 -2
- package/package.json +1 -1
package/dist/page_compiler.mjs
CHANGED
|
@@ -431,7 +431,7 @@ var processPageElements = (element, objectAttributes, recursionLevel, stack = []
|
|
|
431
431
|
element.options = {};
|
|
432
432
|
for (let i = 0; i < children.length + 1; i++) {
|
|
433
433
|
const child = element.children[i];
|
|
434
|
-
const processedChild = processPageElements(child, objectAttributes, recursionLevel + 1);
|
|
434
|
+
const processedChild = processPageElements(child, objectAttributes, recursionLevel + 1, stack);
|
|
435
435
|
element.children[i] = processedChild;
|
|
436
436
|
}
|
|
437
437
|
return {
|
|
@@ -508,7 +508,8 @@ var generateSuitablePageElements = async (pageLocation, pageElements, metadata,
|
|
|
508
508
|
return [];
|
|
509
509
|
}
|
|
510
510
|
const objectAttributes = [];
|
|
511
|
-
const
|
|
511
|
+
const stack = [];
|
|
512
|
+
const processedPageElements = processPageElements(pageElements, objectAttributes, 0, stack);
|
|
512
513
|
elementKey = 0;
|
|
513
514
|
const renderedPage = await serverSideRenderPage(
|
|
514
515
|
processedPageElements,
|