Skip to content

Commit 37c5adb

Browse files
committed
Fix things list
1 parent 5e1d832 commit 37c5adb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arduino-cloud.html

+2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
if (!queryString || queryString === "")
161161
return;
162162
$.getJSON(`things?${queryString}`, things => {
163+
$("select#node-input-thing").empty();
163164
if (things && typeof (things) == "object" && things.error) {
164165
$("<option value='" + "" + "'> " + things.error + "</option>").appendTo("#node-input-thing");
165166
} else if (things && Array.isArray(things) && things.length !== 0) {
@@ -183,6 +184,7 @@
183184
queryString = `${queryString}&thing_id=${thing_id}`;
184185
$("#node-input-property").html("");
185186
$.getJSON(`properties?${queryString}`, properties => {
187+
$("select#node-input-property").empty();
186188
if (properties && typeof (properties) == "object" && properties.error) {
187189
$("<option value='" + "" + "'> " + things.error + "</option>").appendTo("#node-input-thing");
188190
} else if ((properties && Array.isArray(properties) && properties.length !== 0)) {

0 commit comments

Comments
 (0)