mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
fix(web): declare entityContext in bulkLinkMutation so bulk link import works (#1260)
This commit is contained in:
parent
bec73e28ad
commit
7c848a5da3
1 changed files with 2 additions and 1 deletions
|
|
@ -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" },
|
||||
})),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue