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
+2 -3
View File
@@ -9,9 +9,8 @@ import Footer from "../../components/footer";
import Header from "../../components/header";
import { wrapper } from "../../store/store";
import _ from "lodash";
import Breadcrumbs from "../../components/breadcrumbs";
import { getSearchDetails } from "../../components/utils";
import { getSearchDetails, hasOwn } from "../../components/utils";
import { setSearch } from "../../store/search/action";
import {
setSearchDetails,
@@ -58,7 +57,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
);
let searchResultsObj = await getDNSList();
if (_.has(searchResultsObj, "status") != false) {
if (hasOwn(searchResultsObj, "status") != false) {
if (searchResultsObj.status == 400) {
return {
redirect: {