111
This commit is contained in:
@@ -33,7 +33,7 @@ export class NodeManager {
|
||||
const position = options.position ||
|
||||
!lastNode ? { x: positionX, y: positionY } :
|
||||
{ x: lastNode.position.x + lastNode.dimensions.width + 50 + positionX, y: lastNode.position.y + positionY }
|
||||
const data = options.data || {}
|
||||
const data = { ...(options?.data || {}) }
|
||||
data['component'] = options.component
|
||||
const options_ = {
|
||||
id,
|
||||
@@ -49,6 +49,7 @@ export class NodeManager {
|
||||
component: resultImage,
|
||||
data: {
|
||||
type: NODE_DATATYPE.RESULT_IMAGE,
|
||||
...(options?.data || {}),
|
||||
},
|
||||
...(options ? options : {}),
|
||||
}
|
||||
@@ -61,6 +62,7 @@ export class NodeManager {
|
||||
positionY: 50,
|
||||
data: {
|
||||
type: NODE_DATATYPE.CARDS_SELECT,
|
||||
...(options?.data || {}),
|
||||
},
|
||||
...(options ? options : {}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user