File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
ui/src/app/views/workflow/show/notification/form Expand file tree Collapse file tree 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 {
121121 createNotification ( ) : void {
122122 this . loading = true ;
123123 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+ }
129130 if ( this . selectedUsers != null ) {
130131 this . _notification . settings . recipients = this . selectedUsers . split ( ',' ) ;
131132 }
You can’t perform that action at this time.
0 commit comments