Fix the subject bug (#5218)

This commit is contained in:
Maurizio Vitale
2019-11-06 20:45:53 +00:00
committed by GitHub
parent 5578b7b851
commit e458af0284

View File

@@ -33,7 +33,7 @@ export class TaskCloudService extends BaseCloudService {
returnType = Object; returnType = Object;
private dataChangesDetected = new Subject(); private dataChangesDetected = new Subject();
dataChangesDetected$: Observable<object>; dataChangesDetected$: Observable<any>;
constructor( constructor(
private apiService: AlfrescoApiService, private apiService: AlfrescoApiService,
@@ -130,6 +130,7 @@ export class TaskCloudService extends BaseCloudService {
this.returnType, null, null) this.returnType, null, null)
).pipe( ).pipe(
map((res: any) => { map((res: any) => {
this.dataChangesDetected.next();
return new TaskDetailsCloudModel(res.entry); return new TaskDetailsCloudModel(res.entry);
}), }),
catchError((err) => this.handleError(err)) catchError((err) => this.handleError(err))
@@ -157,6 +158,7 @@ export class TaskCloudService extends BaseCloudService {
this.returnType, null, null) this.returnType, null, null)
).pipe( ).pipe(
map((res: any) => { map((res: any) => {
this.dataChangesDetected.next();
return new TaskDetailsCloudModel(res.entry); return new TaskDetailsCloudModel(res.entry);
}), }),
catchError((err) => this.handleError(err)) catchError((err) => this.handleError(err))
@@ -184,7 +186,6 @@ export class TaskCloudService extends BaseCloudService {
this.returnType, null, null) this.returnType, null, null)
).pipe( ).pipe(
map((res: any) => { map((res: any) => {
this.dataChangesDetected.next();
return new TaskDetailsCloudModel(res.entry); return new TaskDetailsCloudModel(res.entry);
}), }),
catchError((err) => this.handleError(err)) catchError((err) => this.handleError(err))