resolve warnings

This commit is contained in:
Mario
2020-11-11 15:29:56 +01:00
parent 0183679041
commit dad91d0a93
2 changed files with 5 additions and 10 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
import * as Blockly from 'blockly/core';
import { getColour } from '../helpers/colour';
import * as Types from '../helpers/types'
/**
* MQTT Blocks
@@ -36,7 +35,7 @@ Blockly.Blocks["sensebox_mqtt_setup"] = {
},
onchange: function (e) {
let service = this.getFieldValue('service');
switch (this.getFieldValue('service')) {
switch (service) {
case 'adafruitio':
this.getField('server').setValue("io.adafruit.com");
this.getField('port').setValue("1883");