Merged PR 2295: resolved lint warnings
resolved lint warnings Related work items: #22873
This commit is contained in:
@@ -2076,10 +2076,12 @@ const CaseSummary = (props) => {
|
||||
) : null;
|
||||
}
|
||||
|
||||
const fallbackIncidentId = setCaseQueryObj?.value?.[0]?.incidentid;
|
||||
|
||||
useEffect(() => {
|
||||
const linkCaseObj = async () => {
|
||||
let docObj = await getLinkedCases(
|
||||
incidentid || setCaseQueryObj.value[0].incidentid
|
||||
incidentid || fallbackIncidentId
|
||||
).then((data) => {
|
||||
//console.log(data);
|
||||
setCurrentLinkedCases(data);
|
||||
@@ -2090,7 +2092,7 @@ const CaseSummary = (props) => {
|
||||
};
|
||||
|
||||
const linkedCases = linkCaseObj();
|
||||
}, [incidentid, setCurrentLinkedCases]);
|
||||
}, [incidentid, fallbackIncidentId, setCurrentLinkedCases]);
|
||||
|
||||
let now = new Date();
|
||||
let expDate = new Date(now);
|
||||
|
||||
Reference in New Issue
Block a user