1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Update packages/node_modules/@node-red/editor-client/src/js/ui/search.js

Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
This commit is contained in:
Stephen McLaughlin 2022-05-09 17:41:33 +01:00 committed by GitHub
parent f0293b8f52
commit dd3174c40f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,8 +125,8 @@ RED.search = (function() {
val = extractValue(val,"uses",flags);// uses:<node-id>
val = val.trim();
var hasFlags = Object.keys(flags).length > 0;
if (flags.flow && flags.flow.indexOf("active") >= 0) {
let idx = flags.flow.indexOf("active");
if (flags.flow && flags.flow.indexOf("current") >= 0) {
let idx = flags.flow.indexOf("current");
flags.flow[idx] = RED.workspaces.active();//convert active to flow ID
}
if (flags.flow && flags.flow.length) {