node-red-contrib-mobius-flow-base 3.0.0-rc.6 → 3.0.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -389,20 +389,23 @@ function getMobsearch(mobiusSrvc, useRid, listed, opts) {
389
389
  uri = uri.substring(0, uri.indexOf('#') + 1);
390
390
  }
391
391
  if (listed) {
392
- // opts.list[selectionIndex].uri = uri;
393
- tempList = JSON.parse(JSON.stringify(opts.list));
394
- tempList[selectionIndex].uri = uri;
392
+ tempList = JSON.parse(JSON.stringify(opts.list)); // Pre List
393
+ if (tempList.length === selectionIndex) {
394
+ tempList.push({uri, type: 'unknown'})
395
+ } else {
396
+ tempList[selectionIndex].uri = uri;
397
+ }
395
398
  updateList();
396
- opts.list = JSON.parse(JSON.stringify(tempList));
399
+ opts.list = JSON.parse(JSON.stringify(tempList)); // Set log
397
400
  } else {
398
401
  $(`#${opts.uriFieldName}`).val(uri);
399
402
  document.getElementById(opts.uriFieldName).dispatchEvent(new Event('change'));
403
+ $(`#${opts.searchButtonId}`).removeClass('disabled');
400
404
  }
401
405
  $('#node-search-accept').css('color', '#CCCCCC');
402
406
  readyToAccept = false;
403
407
  $('#node-search-return').addClass('disabled');
404
408
  $('#node-search-accept').addClass('disabled');
405
- $(`#${opts.searchButtonId}`).removeClass('disabled');
406
409
  $('#instance-search-row').hide();
407
410
  $('#instance-row').show();
408
411
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-mobius-flow-base",
3
- "version": "3.0.0-rc.6",
3
+ "version": "3.0.0-rc.7",
4
4
  "description": "Node-RED base nodes for Mobius Flow",
5
5
  "main": "index.js",
6
6
  "types": "dist/index.d.ts",