Skip to content

Commit d98cb1c

Browse files
manasa4manasa
authored andcommitted
Refresh not triggered on Details,subTabs template issue fixed
1 parent 49cde88 commit d98cb1c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/angular-sdk-components/src/lib/_components/infra/defer-load/defer-load.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
3838
CASE: any;
3939
PAGE: any;
4040
DATA: any;
41+
lastUpdateCaseTime;
4142
constructor(private angularPConnect: AngularPConnectService) {
4243
this.constants = PCore.getConstants();
4344
}
@@ -58,8 +59,10 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
5859
// Should always check the bridge to see if the component should
5960
// update itself (re-render)
6061
const theRequestedAssignment = this.pConn$.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENT_LABEL);
61-
if (theRequestedAssignment !== this.currentLoadedAssignment) {
62+
const lastUpdateCaseTime = this.pConn$.getValue('caseInfo.lastUpdateTime');
63+
if (theRequestedAssignment !== this.currentLoadedAssignment || (lastUpdateCaseTime && lastUpdateCaseTime !== this.lastUpdateCaseTime)) {
6264
this.currentLoadedAssignment = theRequestedAssignment;
65+
this.lastUpdateCaseTime = lastUpdateCaseTime;
6366
this.loadActiveTab();
6467
}
6568
}

0 commit comments

Comments
 (0)