@@ -682,7 +682,8 @@ Blockly.Blocks['operators_expandablejoininputs'] = {
682682 if ( this . isInFlyout ) queueMicrotask ( ( ) => {
683683 for ( let i = 0 ; i < this . inputs_ ; i ++ ) {
684684 const input = this . appendValueInput ( `INPUT${ i + 1 } ` ) ;
685- this . fillInBlock ( input . connection , "text" , this . messageList [ i ] , "TEXT" ) ;
685+ const text this . messageList [ i ] ;
686+ this . fillInBlock ( input . connection , "text" , text ? text : "..." , "TEXT" ) ;
686687 }
687688 } )
688689 } ,
@@ -702,7 +703,8 @@ Blockly.Blocks['operators_expandablejoininputs'] = {
702703 this . inputs_ = isNaN ( inputCount ) ? 0 : inputCount ;
703704 for ( let i = 0 ; i < this . inputs_ ; i ++ ) {
704705 const input = this . appendValueInput ( `INPUT${ i + 1 } ` ) ;
705- this . fillInBlock ( input . connection , "text" , this . messageList [ i ] , "TEXT" ) ;
706+ const text = this . messageList [ i ] ;
707+ this . fillInBlock ( input . connection , "text" , text ? text : "..." , "TEXT" ) ;
706708 }
707709 this . oldInputs_ = this . inputs_ ;
708710 } ,
@@ -716,7 +718,8 @@ Blockly.Blocks['operators_expandablejoininputs'] = {
716718 this . inputs_ ++ ;
717719 const number = this . inputs_ ;
718720 const newInput = this . appendValueInput ( `INPUT${ number } ` ) ;
719- this . fillInBlock ( newInput . connection , "text" , this . messageList [ number - 1 ] , "TEXT" ) ;
721+ const text = this . messageList [ number - 1 ] ;
722+ this . fillInBlock ( newInput . connection , "text" , text ? text : "..." , "TEXT" ) ;
720723 } else if ( this . inputs_ > 1 ) {
721724 this . removeInput ( `INPUT${ this . inputs_ } ` ) ;
722725 this . inputs_ -- ;
0 commit comments