Merged PR 2442: remove lodash dependecies on _.has

Related work items: #23754
This commit is contained in:
Robert Bond
2026-06-29 13:08:06 +00:00
parent 7b6af58065
commit ff699735c7
85 changed files with 870 additions and 952 deletions
+3 -3
View File
@@ -1,4 +1,3 @@
import _ from "lodash";
import useTranslation from "next-translate/useTranslation";
import Head from "next/head";
import { useRouter } from "next/router";
@@ -19,6 +18,7 @@ import { setLPA, setCaseStatus } from "../store/lpa/action";
import { wrapper } from "../store/store";
import ServiceBanner from "../components/servicebanner";
import { getCaseStatus } from "../actions/services/caseDirectService";
import { hasOwn } from "../components/utils";
const Home = (props) => {
const { footerLinks, pages } = props;
@@ -29,8 +29,8 @@ const Home = (props) => {
const { appealtypes } = router.query;
var hasError =
_.has(props.LPAData.LPAData, "errorCode") ||
_.has(props.appealType.appealType, "errorCode")
hasOwn(props.LPAData.LPAData, "errorCode") ||
hasOwn(props.appealType.appealType, "errorCode")
? true
: false;