File tree 1 file changed +6
-5
lines changed
ui/src/app/views/workflow/show/notification/form
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,12 @@ export class WorkflowNotificationFormComponent implements OnInit {
121
121
createNotification ( ) : void {
122
122
this . loading = true ;
123
123
this . _notification . node_id = [ ] ;
124
- this . _notification . source_node_ref . forEach ( source => {
125
- let n = Workflow . getAllNodes ( this . workflow ) . find ( p => p . name === source ) ;
126
- this . _notification . node_id . push ( n . id ) ;
127
- } ) ;
128
-
124
+ if ( this . _notification . source_node_ref ) {
125
+ this . _notification . source_node_ref . forEach ( source => {
126
+ let n = Workflow . getAllNodes ( this . workflow ) . find ( p => p . name === source ) ;
127
+ this . _notification . node_id . push ( n . id ) ;
128
+ } ) ;
129
+ }
129
130
if ( this . selectedUsers != null ) {
130
131
this . _notification . settings . recipients = this . selectedUsers . split ( ',' ) ;
131
132
}
You can’t perform that action at this time.
0 commit comments