fix(web): declare entityContext in bulkLinkMutation so bulk link import works (#1260)

This commit is contained in:
Abhay Singh 2026-07-18 19:15:59 +05:30 committed by GitHub
parent bec73e28ad
commit 7c848a5da3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -390,6 +390,7 @@ export function useDocumentMutations({
urls: string[]
project: string
}): Promise<{ success: number; failed: number }> => {
const entityContext = await resolveEntityContext(project)
let success = 0
let failed = 0
@ -400,7 +401,7 @@ export function useDocumentMutations({
documents: chunk.map((url) => ({
content: url,
containerTags: [project],
entityContext,
...(entityContext !== undefined ? { entityContext } : {}),
metadata: { sm_source: "consumer" },
})),
},