Skip to content

Commit 8b7562c

Browse files
committed
fix: fix a glitch of the UI when the node configuration is re-opened after the first configuration
1 parent d0731e9 commit 8b7562c

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

arduino-iot-cloud.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,15 @@
128128
$("#node-input-organization").change(() => {
129129
const connection = $("#node-input-connection").val();
130130
const organization = $("#node-input-organization").val();
131-
this.organization = organization;
131+
132132
if (connection === "_ADD_") {
133133
$("#node-input-organization").empty();
134134
str = this._("arduino-iot-cloud.config.connection.placeholders.no-conn-selected");
135135
$("<option value='" + "" + "' > " + str + "</option>").appendTo("#node-input-thing");
136136
$("#node-input-thing").trigger("change");
137-
} else {
137+
}
138+
if (this.organization != organization) {
139+
this.organization = organization;
138140
$("select#node-input-thing").empty();
139141
initThings(connection, this._, null, organization);
140142
}

package-lock.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
},
2020
"dependencies": {
21-
"@arduino/arduino-iot-client": "github:arduino/iot-client-js",
21+
"@arduino/arduino-iot-client": "^3.0.0",
2222
"@arduino/cbor-js": "github:arduino/cbor-js",
2323
"async-mutex": "^0.1.4",
2424
"jws": "^3.2.2",

0 commit comments

Comments
 (0)