diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js
index 0d2d7b6fd..ea9a6c24b 100644
--- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js
+++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js
@@ -607,7 +607,7 @@ function newSuperalgosDocsDocumentPage() {
*/
let paragraph
let key = 'auto-generated-paragraph-' + autoGeneratedParagraphIndex
- if (appSchemaDocument === undefined || appSchemaDocument.menuItems === undefined) { return }
+ if (appSchemaDocument === undefined || appSchemaDocument.menuItems === undefined || appSchemaDocument.menuItems.length === 0) { return }
paragraph = {
style: "Title",
@@ -660,7 +660,7 @@ function newSuperalgosDocsDocumentPage() {
let paragraph
let key = 'auto-generated-paragraph-' + autoGeneratedParagraphIndex
- if (appSchemaDocument === undefined || appSchemaDocument.childrenNodesProperties === undefined) { return }
+ if (appSchemaDocument === undefined || appSchemaDocument.childrenNodesProperties === undefined || appSchemaDocument.childrenNodesProperties.length === 0) { return }
paragraph = {
style: "Title",
diff --git a/Projects/Superalgos/UI/Utilities/Docs.js b/Projects/Superalgos/UI/Utilities/Docs.js
index 2c5eeadb4..50ffbf9e7 100644
--- a/Projects/Superalgos/UI/Utilities/Docs.js
+++ b/Projects/Superalgos/UI/Utilities/Docs.js
@@ -293,9 +293,7 @@ function newSuperalgosUtilitiesDocs() {
return result
}
-
function addCodeToWhiteList(text) {
-
let result = text
.replaceAll('true', 'true')
.replaceAll('false', 'false')