mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
Add complete test, and fix tests
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = function(RED) {
|
||||
this.scope = n.scope;
|
||||
|
||||
// auto-filter out any directly connected nodes to avoid simple loopback
|
||||
const w = node.wires.flat().toString();
|
||||
const w = this.wires.flat().toString();
|
||||
for (let i=0; i < this.scope.length; i++) {
|
||||
if (w.includes(this.scope[i])) {
|
||||
this.scope.splice(i, 1);
|
||||
|
||||
@@ -23,7 +23,7 @@ module.exports = function(RED) {
|
||||
this.scope = n.scope;
|
||||
|
||||
// auto-filter out any directly connected nodes to avoid simple loopback
|
||||
const w = node.wires.flat().toString();
|
||||
const w = this.wires.flat().toString();
|
||||
for (let i=0; i < this.scope.length; i++) {
|
||||
if (w.includes(this.scope[i])) {
|
||||
this.scope.splice(i, 1);
|
||||
|
||||
Reference in New Issue
Block a user