mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix the subject bug (#5218)
This commit is contained in:
@@ -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))
|
||||||
|
Reference in New Issue
Block a user