Skip to content

Commit

Permalink
fix(ui): add outgoing ui in ascode workflow (#5782)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored Mar 31, 2021
1 parent c029a08 commit e2e9e35
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export class WorkflowWNodeOutGoingHookComponent implements OnInit, OnDestroy {
ngOnDestroy(): void {} // Should be set to use @AutoUnsubscribe with AOT

ngOnInit(): void {
this.model = this.workflow.outgoing_hook_models[this.node.outgoing_hook.hook_model_id] || this.node.outgoing_hook.model;
if (this.workflow.outgoing_hook_models && this.workflow.outgoing_hook_models[this.node.outgoing_hook.hook_model_id]) {
this.model = this.workflow.outgoing_hook_models[this.node.outgoing_hook.hook_model_id];
} else {
this.model = this.node.outgoing_hook.model;
}
if (this.node && this.node.outgoing_hook.config['hookIcon'] && this.node.outgoing_hook.config['hookIcon'].value) {
this.icon = (<WorkflowNodeHookConfigValue>this.node.outgoing_hook.config['hookIcon']).value.toLowerCase();
} else {
Expand Down

0 comments on commit e2e9e35

Please sign in to comment.