Merged PR 2315: Auth stabilistatiion and hardening
Related work items: #23020
This commit is contained in:
@@ -126,7 +126,10 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
|
||||
let caseObj = searchResultsObj.value[0] || {};
|
||||
|
||||
let hasUnsubscribed = caseObj.hasOwnProperty("pinswg_watchlistid");
|
||||
let hasUnsubscribed = Object.prototype.hasOwnProperty.call(
|
||||
caseObj,
|
||||
"pinswg_watchlistid"
|
||||
);
|
||||
|
||||
console.log("is there a caseObj", hasUnsubscribed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user