Skip to content

Commit 714e360

Browse files
committed
fix null error
1 parent 5a8c9a9 commit 714e360

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

OpenFlowNodeRED/src/nodered/nodes/workflow_nodes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ export class workflow_in_node {
8181
var who = WebSocketClient.instance.user;
8282
(role as any) = { _type: "role", "name": queue + "users", members: [{ "_id": who._id, "name": who.name }], "workflowid": this.workflow._id };
8383
role = await NoderedUtil.InsertOne("users", role, 0, false, null);
84+
} else {
85+
role = res[0];
8486
}
8587
var wf: Base = Base.assign(this.workflow);
8688
wf.addRight(role._id, role.name, [-1]);

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.464
1+
0.0.465

0 commit comments

Comments
 (0)