Skip to content

Commit 393b057

Browse files
author
manasa
committed
updated as per comments
1 parent 7884aaa commit 393b057

File tree

1 file changed

+1
-4
lines changed
  • packages/react-sdk-components/src/components/template/CaseView

1 file changed

+1
-4
lines changed

packages/react-sdk-components/src/components/template/CaseView/CaseView.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
107107
const svgCase = Utils.getImageSrc(icon, Utils.getSDKStaticConentUrl());
108108

109109
const [activeVertTab, setActiveVertTab] = useState(0);
110-
const [dataUpdated, setDataUpdated] = useState(false);
111110

112111
// const tmpLoadData1 = { config: { label: "Details", name: "pyDetailsTabContent" }, type: "DeferLoad" };
113112
// const tmpLoadData2 = { config: { label: "Case History", name: "CaseHistory" }, type: "DeferLoad" };
@@ -171,12 +170,10 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
171170

172171
useEffect(() => {
173172
setIsLastUpdateCaseTimeChanged(true);
174-
setDataUpdated(true);
175173
}, [lastUpdateCaseTime]);
176174

177175
useEffect(() => {
178176
setIsLastUpdateCaseTimeChanged(false);
179-
setDataUpdated(false);
180177
}, [isLastUpdateCaseTimeChanged]);
181178

182179
useEffect(() => {
@@ -256,7 +253,7 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
256253
{theStagesRegion}
257254
{theTodoRegion}
258255
{deferLoadInfo.length > 0 && (
259-
<DeferLoad getPConnect={getPConnect} name={deferLoadInfo[activeVertTab].config.name} isTab dataUpdated={dataUpdated} />
256+
<DeferLoad getPConnect={getPConnect} name={deferLoadInfo[activeVertTab].config.name} isTab dataUpdated={isLastUpdateCaseTimeChanged} />
260257
)}
261258
</Grid>
262259

0 commit comments

Comments
 (0)