Merged PR 2442: remove lodash dependecies on _.has
Related work items: #23754
This commit is contained in:
@@ -29,10 +29,10 @@
|
||||
* description: Success
|
||||
*/
|
||||
|
||||
import _ from "lodash";
|
||||
import { azureHeaders, azureHeadersPaged } from "../../../actions/core/headers";
|
||||
import { getSelectQuery } from "../../../actions/selectQueryTypes";
|
||||
import { getNavigationPropertyByPrimaryAttribute } from "../../../components/utils";
|
||||
import { hasOwn } from "../../../components/utils";
|
||||
import { respondError, respondSuccess } from "../middleware/apiResponse";
|
||||
import { relayGetData } from "../middleware/relayForwarding";
|
||||
|
||||
@@ -138,7 +138,7 @@ export default async function ApiProxy(req, res) {
|
||||
additionalLPAs
|
||||
}));
|
||||
|
||||
if (_.has(data, "@odata.nextLink") === true) {
|
||||
if (hasOwn(data, "@odata.nextLink") === true) {
|
||||
const dataStr = JSON.stringify(data["@odata.nextLink"]);
|
||||
data["@odata.nextLink"] = dataStr.split("/v9.2/")[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user