diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index b7b4f4709..bcd3875b2 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -818,7 +818,7 @@ function newSuperalgosDocSpace() { nodeId: node.id, nodeNameTypePath: nodeNameTypePath, type: node.type, - definition: node.name, + definition: { text: node.name }, paragraphs: [] } if (node.config !== undefined) { @@ -926,9 +926,6 @@ function newSuperalgosDocSpace() { } indexParagraph(paragraph) } - if (documentIndex.docsSchemaDocument.type === "Vaina") { - let a = 1 - } if (documentIndex.docsSchemaDocument.definition !== undefined) { let paragraph = { style: 'Definition', @@ -1905,7 +1902,7 @@ function newSuperalgosDocSpace() { async function repositionWorkspace() { if (objectBeingRendered.category !== 'Workspace') { return } - let node = await UI.projects.superalgos.spaces.designSpace.workspace.getNodeById(docsSchemaDocument.key) + let node = await UI.projects.superalgos.spaces.designSpace.workspace.getNodeById(docsSchemaDocument.nodeId) node.payload.floatingObject.unCollapseParent() setTimeout(positionAtNode, 3000, node) setTimeout(positionAtNode, 5000, node)