Skip to content

Commit 22e0956

Browse files
committed
Don't register empty queues
1 parent 86535b6 commit 22e0956

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

OpenFlowNodeRED/src/nodered/nodes/workflow_nodes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ export class workflow_in_node {
7575
name = this.config.queue;
7676
}
7777

78+
if (NoderedUtil.IsNullEmpty(this.localqueue)) {
79+
this.node.status({ fill: "green", shape: "dot", text: "init failed, missing localqueue name" });
80+
return;
81+
}
82+
7883
const res = await NoderedUtil.Query("workflow", { "queue": this.localqueue }, null, null, 1, 0, null, null, null, 1);
7984
if (res.length == 0) {
8085
const noderedadmins = await NoderedUtil.GetRole(null, Config.noderedadmins);

0 commit comments

Comments
 (0)