Merged PR 2442: remove lodash dependecies on _.has
Related work items: #23754
This commit is contained in:
+2
-1
@@ -18,6 +18,7 @@ import AIPolicyNotice from "../components/AIPolicyNotice";
|
||||
import { setContainerID } from "../store/accountDetails/action";
|
||||
import { setShowReps } from "../store/currentView/action";
|
||||
import { wrapper } from "../store/store";
|
||||
import { hasOwn } from "../components/utils";
|
||||
|
||||
const Home = (props) => {
|
||||
const {
|
||||
@@ -49,7 +50,7 @@ const Home = (props) => {
|
||||
|
||||
hasLoginCode == false
|
||||
? "" //console.log("no session")
|
||||
: _.has(loggedInUserId, "value")
|
||||
: hasOwn(loggedInUserId, "value")
|
||||
? _.isEmpty(loggedInUserId.value)
|
||||
? router.replace({
|
||||
pathname:
|
||||
|
||||
Reference in New Issue
Block a user