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
+7 -7
View File
@@ -5,7 +5,7 @@ import { useRouter } from "next/router";
import { useCallback, useEffect, useRef, useState } from "react";
import { connect } from "react-redux";
import transLookup from "../../data/lookuptranslations.json";
import { formatDates, getDocLink } from "../utils";
import { formatDates, getDocLink, hasOwn } from "../utils";
import PaginationControl from "./pagination";
import { sendGAEvent } from "@next/third-parties/google";
@@ -349,7 +349,7 @@ const DocumentDetails = (props) => {
)}
:
</span>
{_.has(
{hasOwn(
detailsObj,
"pinswg_name"
)
@@ -364,7 +364,7 @@ const DocumentDetails = (props) => {
)}
:
</span>
{_.has(
{hasOwn(
detailsObj,
"pinswg_name"
)
@@ -405,7 +405,7 @@ const DocumentDetails = (props) => {
:
</span>
{_.has(
{hasOwn(
detailsObj,
"pinswg_latestpublisheddate"
)
@@ -785,7 +785,7 @@ const DocumentDetails = (props) => {
)}
:
</span>
{_.has(
{hasOwn(
detailsObj,
"pinswg_name"
)
@@ -801,7 +801,7 @@ const DocumentDetails = (props) => {
)}
:
</span>
{_.has(
{hasOwn(
detailsObj,
"pinswg_name"
)
@@ -844,7 +844,7 @@ const DocumentDetails = (props) => {
:
</span>
{_.has(
{hasOwn(
detailsObj,
"pinswg_latestpublisheddate"
)