Merged PR 2442: remove lodash dependecies on _.has
Related work items: #23754
This commit is contained in:
+2
-3
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user