Commit 5a886eb1 authored by Christos Tranoris's avatar Christos Tranoris
Browse files

fix bracket bug in list witl

parent b252b250
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -722,11 +722,9 @@ export class ServiceRuleDesignComponent implements OnInit {

          var objects = Blockly.Java.valueToCode(block, 'VARIABLES', Blockly.Java.ORDER_NONE)  || null;

          objects = objects.replace('[', ' ,');
          objects = objects.replace(']', ' ');
          objects = objects.substring(1, objects.length-1 ); //remove first and last brackets


          var code = 'String.format(' +  atext + objects + ')';
          var code = 'String.format(' +  atext + ', ' + objects + ')';
          return [code, Blockly.Java.ORDER_ATOMIC];
      };