From b7e9dded349e836f89e84fad37819ca849dafc03 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 3 Jan 2021 13:38:42 +0100 Subject: [PATCH] More bug fixes --- Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js | 4 ++-- Projects/Superalgos/UI/Utilities/Docs.js | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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')