File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 160
160
if ( ! queryString || queryString === "" )
161
161
return ;
162
162
$ . getJSON ( `things?${ queryString } ` , things => {
163
+ $ ( "select#node-input-thing" ) . empty ( ) ;
163
164
if ( things && typeof ( things ) == "object" && things . error ) {
164
165
$ ( "<option value='" + "" + "'> " + things . error + "</option>" ) . appendTo ( "#node-input-thing" ) ;
165
166
} else if ( things && Array . isArray ( things ) && things . length !== 0 ) {
183
184
queryString = `${ queryString } &thing_id=${ thing_id } ` ;
184
185
$ ( "#node-input-property" ) . html ( "" ) ;
185
186
$ . getJSON ( `properties?${ queryString } ` , properties => {
187
+ $ ( "select#node-input-property" ) . empty ( ) ;
186
188
if ( properties && typeof ( properties ) == "object" && properties . error ) {
187
189
$ ( "<option value='" + "" + "'> " + things . error + "</option>" ) . appendTo ( "#node-input-thing" ) ;
188
190
} else if ( ( properties && Array . isArray ( properties ) && properties . length !== 0 ) ) {
You can’t perform that action at this time.
0 commit comments