this.msService.createUpdate
击中2次并抛出错误。
我已经尝试过使用take(1),但是那也不起作用。
this.msService.save(this.ms).subscribe((ms: any) => { this.msService.getDataItemWithCalculations(String(this.DataItemId)).subscribe((calcs:any) => { //other manipulations this.msService.createUpdate(this.ms).subscribe(mswithChild => {
//service is hitting twice
this.msService.getDataItemWithCalculations(String(this.ms.DataItemUID)).subscribe(
(ms :any)=> {
//other manipulations
this.setNotificationMessage();
}, error => this.setNotificationMessage();
}, error => this.setNotificationMessage();
}, error => this.setNotificationMessage();
}, error => this.setNotificationMessage();