fix: transform nodule calls right creation methods
This commit is contained in:
parent
ec68f09169
commit
714fd6357e
@ -41,13 +41,14 @@ class Nodules {
|
||||
|
||||
addNewTransformNodule = props => {
|
||||
try {
|
||||
const newJoinNodule = new TransformNodule({
|
||||
const newTransformNodule = new TransformNodule({
|
||||
id: props.id || uuid(),
|
||||
label: props.label,
|
||||
tables: props.tables,
|
||||
structure: props.structure
|
||||
})
|
||||
this.collection.push(newJoinNodule)
|
||||
console.log(newTransformNodule)
|
||||
this.collection.push(newTransformNodule)
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ class CreateNodule extends Component {
|
||||
}
|
||||
else if (noduleType === 'transform') {
|
||||
const structureProperties = this.transformNoduleForm.current.getStructureProperties()
|
||||
this.controller.addNewJoinNodule({
|
||||
this.controller.addNewTransformNodule({
|
||||
label: noduleLabel,
|
||||
tablesToImportByLabel: selectedTableLabels,
|
||||
structure: structureProperties
|
||||
|
Loading…
x
Reference in New Issue
Block a user