Merged PR 2442: remove lodash dependecies on _.has
Related work items: #23754
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import { useRouter } from "next/router";
|
||||
import { hasOwn } from "./utils";
|
||||
|
||||
const CRMError = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -9,7 +10,7 @@ const CRMError = (props) => {
|
||||
const router = useRouter();
|
||||
const { locale } = router;
|
||||
|
||||
const errorSwitch = _.has(props, "whichError")
|
||||
const errorSwitch = hasOwn(props, "whichError")
|
||||
? "LPAData"
|
||||
: "searchResultsObj";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user