From 430db448f8dd492365f356137393d36359e1b931 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 25 Dec 2020 14:37:43 +0100 Subject: [PATCH] more bugs fixed --- Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index d8ecc980b..add77f9b9 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -2132,7 +2132,10 @@ function newSuperalgosDocSpace() { } let hierarchyImageDiv = document.getElementById(imageItem.div) - hierarchyImageDiv.appendChild(imageElement) + if (hierarchyImageDiv) { // The lower part of the table is filled with spaces that were added to the array but not to the HTML, we can ignore them. + hierarchyImageDiv.appendChild(imageElement) + + } } } @@ -2991,6 +2994,7 @@ function newSuperalgosDocSpace() { appSchemaDocument = SCHEMAS_BY_PROJECT.get(project).map.appSchema.get(type) if (appSchemaDocument === undefined) { return } if (isNaN(levels) === true) { return } + if (levels > 10) { return } const MAX_COLUMNS = 10 const MAX_ROWS = 100