Merged PR 2442: remove lodash dependecies on _.has
Related work items: #23754
This commit is contained in:
@@ -12,7 +12,7 @@ import CookieBanner from "../components/cookieBanner";
|
||||
import DNSSearchResults from "../components/dnssearchresults";
|
||||
import Footer from "../components/footer";
|
||||
import Header from "../components/header";
|
||||
import { getSearchDetails } from "../components/utils";
|
||||
import { getSearchDetails, hasOwn } from "../components/utils";
|
||||
import { setSearch } from "../store/search/action";
|
||||
import {
|
||||
setSearchDetails,
|
||||
@@ -143,7 +143,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
const showMapCheck = process.env.SHOWMAPS || false;
|
||||
const mapTarget = process.env.MAP_TARGET || "pedw-dev";
|
||||
|
||||
// if (_.has(searchResultsObj, "status") == true) {
|
||||
// if (hasOwn(searchResultsObj, "status") == true) {
|
||||
// return {
|
||||
// redirect: {
|
||||
// //destination: "/dns-not-found",
|
||||
|
||||
Reference in New Issue
Block a user