mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix the subject bug (#5218)
This commit is contained in:
@@ -33,7 +33,7 @@ export class TaskCloudService extends BaseCloudService {
|
||||
returnType = Object;
|
||||
|
||||
private dataChangesDetected = new Subject();
|
||||
dataChangesDetected$: Observable<object>;
|
||||
dataChangesDetected$: Observable<any>;
|
||||
|
||||
constructor(
|
||||
private apiService: AlfrescoApiService,
|
||||
@@ -130,6 +130,7 @@ export class TaskCloudService extends BaseCloudService {
|
||||
this.returnType, null, null)
|
||||
).pipe(
|
||||
map((res: any) => {
|
||||
this.dataChangesDetected.next();
|
||||
return new TaskDetailsCloudModel(res.entry);
|
||||
}),
|
||||
catchError((err) => this.handleError(err))
|
||||
@@ -157,6 +158,7 @@ export class TaskCloudService extends BaseCloudService {
|
||||
this.returnType, null, null)
|
||||
).pipe(
|
||||
map((res: any) => {
|
||||
this.dataChangesDetected.next();
|
||||
return new TaskDetailsCloudModel(res.entry);
|
||||
}),
|
||||
catchError((err) => this.handleError(err))
|
||||
@@ -184,7 +186,6 @@ export class TaskCloudService extends BaseCloudService {
|
||||
this.returnType, null, null)
|
||||
).pipe(
|
||||
map((res: any) => {
|
||||
this.dataChangesDetected.next();
|
||||
return new TaskDetailsCloudModel(res.entry);
|
||||
}),
|
||||
catchError((err) => this.handleError(err))
|
||||
|
Reference in New Issue
Block a user