File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 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 ) {
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 ) ) {
You can’t perform that action at this time.
0 commit comments