Search over workspace nodes fixed, and repositioning on workspace node fixed

This commit is contained in:
Luis Fernando Molina committed 2020-12-30 12:51:15 +01:00
1 parent 4309c19bb7
commit 8bccf75614
1 file changed
+2 -5
@@ -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)