fix: transform nodule calls right creation methods

This commit is contained in:
ysandler 2020-07-30 21:38:32 -05:00 committed by Joshua Shoemaker
parent ec68f09169
commit 714fd6357e
2 changed files with 4 additions and 3 deletions

View File

@ -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)
}

View File

@ -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