Skip to content

Commit 4a58a52

Browse files
oodamienghillert
authored andcommitted
spring-atticgh-733 Fix task summary loading
1 parent ae29348 commit 4a58a52

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

ui/src/app/tasks/task-definition/summary/task-summary.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<app-task-status [taskDefinition]="task.taskDefinition"></app-task-status>
3333
</div>
3434
</div>
35-
<div class="row task-summary-row">
35+
<div class="row task-summary-row" *ngIf="task.apps.length > 0">
3636
<div class="col-md-3">
3737
<strong>Applications:</strong>
3838
</div>

ui/src/app/tasks/task-definition/summary/task-summary.component.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,7 @@ export class TaskSummaryComponent implements OnInit {
6666
val => Observable.of(Parser.parse(val.dslText as string, 'task')),
6767
(val1: TaskDefinition, val2: any) => ({
6868
taskDefinition: val1,
69-
apps: val2.lines[0].nodes
70-
.map((node) => (
71-
{
72-
origin: node['name'],
73-
name: node['label'] || node['name'],
74-
type: node.type.toString()
75-
}
76-
))
69+
apps: []
7770
})
7871
));
7972
}

0 commit comments

Comments
 (0)