Skip to content

Commit

Permalink
fix(ui): allow to edit notifications without pipelines (#6111)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored Mar 25, 2022
1 parent 881ed4b commit 3c0a76c
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,12 @@ export class WorkflowNotificationFormComponent implements OnInit {
createNotification(): void {
this.loading = true;
this._notification.node_id = [];
this._notification.source_node_ref.forEach(source => {
let n = Workflow.getAllNodes(this.workflow).find(p => p.name === source);
this._notification.node_id.push(n.id);
});

if (this._notification.source_node_ref) {
this._notification.source_node_ref.forEach(source => {
let n = Workflow.getAllNodes(this.workflow).find(p => p.name === source);
this._notification.node_id.push(n.id);
});
}
if (this.selectedUsers != null) {
this._notification.settings.recipients = this.selectedUsers.split(',');
}
Expand Down

0 comments on commit 3c0a76c

Please sign in to comment.