pass showlogin vars to pages and components

This commit is contained in:
2026-01-28 13:31:19 +00:00
parent b790facf56
commit 46bc5d1006
5 changed files with 148 additions and 148 deletions
+6 -5
View File
@@ -102,7 +102,7 @@ const CaseHome = (props) => {
representationsObj={
props.searchResultsObj.representationsObj
}
showLoginCheck={true}
showLoginCheck={props.showLoginCheck}
messagesObj={props.messagesObj}
showFilteredDocs={props.showFilteredDocs}
showMaps={props.showMaps}
@@ -170,7 +170,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
console.log(
searchResultsObj["@odata.count"] > 1 ||
searchResultsObj["@odata.count"] < 1
searchResultsObj["@odata.count"] < 1,
);
if (searchResultsObj["@odata.count"] < 1) {
@@ -211,7 +211,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
searchDetailsObj[0].value[0]
.pinswg_specialistcaseprocess
: "",
})
}),
);
}
}
@@ -225,13 +225,14 @@ export const getServerSideProps = wrapper.getServerSideProps(
currentType: "directResultsObj",
docsOffline: process.env.DOCAPI_OFFLINE || false,
messagesObj: await getCaseMessage(
searchResultsObj.value[0].incidentid
searchResultsObj.value[0].incidentid,
),
showFilteredDocs: process.env.SHOWFILTERDOCS || false,
showMaps: process.env.SHOWMAPS,
showLoginCheck: process.env.SHOWLOGIIN || true,
},
};
}
},
);
const mapStateToProps = (state) => {