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 => { addNewTransformNodule = props => {
try { try {
const newJoinNodule = new TransformNodule({ const newTransformNodule = new TransformNodule({
id: props.id || uuid(), id: props.id || uuid(),
label: props.label, label: props.label,
tables: props.tables, tables: props.tables,
structure: props.structure structure: props.structure
}) })
this.collection.push(newJoinNodule) console.log(newTransformNodule)
this.collection.push(newTransformNodule)
} catch (err) { } catch (err) {
console.error(err) console.error(err)
} }

View File

@ -59,7 +59,7 @@ class CreateNodule extends Component {
} }
else if (noduleType === 'transform') { else if (noduleType === 'transform') {
const structureProperties = this.transformNoduleForm.current.getStructureProperties() const structureProperties = this.transformNoduleForm.current.getStructureProperties()
this.controller.addNewJoinNodule({ this.controller.addNewTransformNodule({
label: noduleLabel, label: noduleLabel,
tablesToImportByLabel: selectedTableLabels, tablesToImportByLabel: selectedTableLabels,
structure: structureProperties structure: structureProperties