Merged PR 2442: remove lodash dependecies on _.has
Related work items: #23754
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import _ from "lodash";
|
||||
import { hashAPIPath, consoleLogger } from ".";
|
||||
import { getDocumentTypeFromFilename } from "../components/utils";
|
||||
import { getDocumentTypeFromFilename, hasOwn } from "../components/utils";
|
||||
|
||||
const {
|
||||
ContainerClient,
|
||||
@@ -316,7 +316,7 @@ export const createBlob = async (formContent, containerName, caseref) => {
|
||||
formContent = JSON.parse(formContent);
|
||||
let caseID = "";
|
||||
|
||||
caseID = _.has(formContent, "pinswg_name")
|
||||
caseID = hasOwn(formContent, "pinswg_name")
|
||||
? formContent.pinswg_name
|
||||
: caseref;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user