Skip to content

Commit

Permalink
Update task execution resource list
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiahub committed Apr 11, 2024
1 parent c59367d commit 2da7289
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/app/shared/model/task-execution.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export class TaskExecutionThin {
export class TaskExecutionPage extends Page<TaskExecution> {
static parse(input: any): Page<TaskExecution> {
const page = Page.fromJSON<TaskExecution>(input);
if (input && input._embedded && input._embedded.taskExecutionResourceList) {
page.items = input._embedded.taskExecutionResourceList.map(TaskExecution.parse);
if (input && input._embedded && input._embedded.taskExecutionThinResourceList) {
page.items = input._embedded.taskExecutionThinResourceList.map(TaskExecution.parse);
}
return page;
}
Expand All @@ -152,8 +152,8 @@ export class TaskExecutionPage extends Page<TaskExecution> {
export class TaskExecutionThinPage extends Page<TaskExecution> {
static parse(input: any): Page<TaskExecutionThin> {
const page = Page.fromJSON<TaskExecutionThin>(input);
if (input && input._embedded && input._embedded.taskExecutionResourceList) {
page.items = input._embedded.taskExecutionResourceList.map(TaskExecutionThin.parse);
if (input && input._embedded && input._embedded.taskExecutionThinResourceList) {
page.items = input._embedded.taskExecutionThinResourceList.map(TaskExecutionThin.parse);
}
return page;
}
Expand Down

0 comments on commit 2da7289

Please sign in to comment.