fix: transform nodule calls right creation methods
This commit is contained in:
		
							parent
							
								
									ec68f09169
								
							
						
					
					
						commit
						714fd6357e
					
				@ -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)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -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
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user