File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
packages/react-sdk-components/src/components/template/CaseView Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments