Merged PR 2442: remove lodash dependecies on _.has
Related work items: #23754
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import _ from "lodash";
|
||||
import { hasOwn } from "../utils";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import { useRouter } from "next/router";
|
||||
import React, { useEffect } from "react";
|
||||
@@ -40,7 +41,7 @@ const getValidationMessages = (t) => ({
|
||||
const hasParentFieldValue = ({ parentField, form, formProps }) =>
|
||||
parentField != false &&
|
||||
!_.isEmpty(formProps[form]) &&
|
||||
_.has(formProps[form].values, parentField);
|
||||
hasOwn(formProps[form].values, parentField);
|
||||
|
||||
const isVisibleByEquality = ({
|
||||
parentField,
|
||||
|
||||
Reference in New Issue
Block a user