File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ export const pythonFromBlock = function (
122122 block : ComponentBlock ,
123123 generator : ExtendedPythonGenerator ,
124124) {
125- if ( this . mrcImportModule ) {
126- generator . addImport ( this . mrcImportModule ) ;
125+ if ( block . mrcImportModule ) {
126+ generator . addImport ( block . mrcImportModule ) ;
127127 }
128- let code = 'self.' + this . getFieldValue ( 'NAME' ) + ' = ' + this . getFieldValue ( 'TYPE' ) + '(' ;
128+ let code = 'self.' + block . getFieldValue ( 'NAME' ) + ' = ' + block . getFieldValue ( 'TYPE' ) + '(' ;
129129
130130 for ( let i = 0 ; i < block . mrcArgs . length ; i ++ ) {
131131 const fieldName = 'ARG' + i ;
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export const pythonFromBlock = function (
125125 if ( block . mrcImportModule ) {
126126 generator . addImport ( block . mrcImportModule ) ;
127127 }
128- let code = 'self.' + this . getFieldValue ( 'NAME' ) + ' = ' + this . getFieldValue ( 'TYPE' ) + '(' ;
128+ let code = 'self.' + block . getFieldValue ( 'NAME' ) + ' = ' + block . getFieldValue ( 'TYPE' ) + '(' ;
129129
130130 for ( let i = 0 ; i < block . mrcArgs . length ; i ++ ) {
131131 const fieldName = 'ARG' + i ;
You can’t perform that action at this time.
0 commit comments