Skip to content

Commit 850b5e2

Browse files
committed
Fix initi for hist, poll and push nodes.
1 parent 7841871 commit 850b5e2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

arduino-cloud.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@
189189
applicationname: { value: "", required: true },
190190
},
191191
credentials: {
192-
clientid: { type: "password" },
193-
clientsecret: { type: "password" }
192+
clientid: { type: "password", required: true },
193+
clientsecret: { type: "password", required: true }
194194
},
195195
label: function () {
196196
return this.applicationname || "";
@@ -257,9 +257,10 @@
257257
},
258258
paletteLabel: "historic",
259259
oneditprepare: function () {
260+
debugger;
260261
console.log("thing_id: " + this.thing);
261262
console.log("property_id: " + this.property);
262-
if (this.connection) {
263+
if (this.connection && this.connection !== "_ADD_") {
263264
initThings(this.connection, this.thing);
264265
initProperties(this.connection, this.thing, this.property, 1);
265266
}
@@ -373,7 +374,7 @@
373374
oneditprepare: function () {
374375
console.log("thing_id: " + this.thing);
375376
console.log("property_id: " + this.property);
376-
if (this.connection) {
377+
if (this.connection && this.connection !== "_ADD_") {
377378
initThings(this.connection, this.thing);
378379
initProperties(this.connection, this.thing, this.property, 1);
379380
}
@@ -484,7 +485,7 @@
484485
oneditprepare: function () {
485486
console.log("thing_id: " + this.thing);
486487
console.log("property_id: " + this.property);
487-
if (this.connection) {
488+
if (this.connection && this.connection !== "_ADD_") {
488489
initThings(this.connection, this.thing);
489490
initProperties(this.connection, this.thing, this.property, 1);
490491
}

0 commit comments

Comments
 (0)