[DURACOM-134] send-back action fixed

This commit is contained in:
Alisa Ismailati
2023-04-26 15:33:02 +02:00
parent 4847fc6f7a
commit c89adf4f81

View File

@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { Location } from '@angular/common';
import { Observable, forkJoin } from 'rxjs';
import { Observable, combineLatest } from 'rxjs';
import { map, switchMap, take } from 'rxjs/operators';
import { TranslateService } from '@ngx-translate/core';
import { WorkflowItem } from '../core/submission/models/workflowitem.model';
@@ -52,7 +52,7 @@ export abstract class WorkflowItemActionPageComponent implements OnInit {
* Performs the action and shows a notification based on the outcome of the action
*/
performAction() {
forkJoin([this.wfi$, this.requestService.removeByHrefSubstring('/discover')]).pipe(
combineLatest([this.wfi$, this.requestService.removeByHrefSubstring('/discover')]).pipe(
take(1),
switchMap(([wfi]) => this.sendRequest(wfi.id))
).subscribe((successful: boolean) => {