fix
This commit is contained in:
@@ -53,7 +53,6 @@ export class NodeManager {
|
||||
return current.data.createIndexPosition > max.data.createIndexPosition ? current : max
|
||||
}, superiorGenerateNodes[0])
|
||||
const snode = superiorID ? this.stateManager.flowManager.getNodeById(superiorID) : this.stateManager.flowManager.getLastNode();
|
||||
console.log(snode)
|
||||
const id = options.id || createId()
|
||||
const positionX = options.positionX || 0
|
||||
const positionY = options.positionY || 0
|
||||
@@ -82,6 +81,7 @@ export class NodeManager {
|
||||
position,
|
||||
data
|
||||
}
|
||||
if(currentNode)this.stateManager.deleteNode(currentNode.id)
|
||||
this.addNode(options_)
|
||||
return options_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user