mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Copy params so no extra params are sent
This commit is contained in:
parent
570b7a4b78
commit
ddf7d590fd
1 changed files with 16 additions and 1 deletions
|
|
@ -57,7 +57,22 @@ export async function mergeHighlightMutation(
|
|||
`
|
||||
|
||||
try {
|
||||
const data = await gqlFetcher(mutation, { input })
|
||||
const data = await gqlFetcher(mutation, {
|
||||
input: {
|
||||
id: input.id,
|
||||
shortId: input.shortId,
|
||||
articleId: input.articleId,
|
||||
patch: input.patch,
|
||||
quote: input.quote,
|
||||
prefix: input.prefix,
|
||||
suffix: input.suffix,
|
||||
html: input.html,
|
||||
annotation: input.annotation,
|
||||
overlapHighlightIdList: input.overlapHighlightIdList,
|
||||
highlightPositionPercent: input.highlightPositionPercent,
|
||||
highlightPositionAnchorIndex: input.highlightPositionAnchorIndex,
|
||||
},
|
||||
})
|
||||
const output = data as MergeHighlightOutput | undefined
|
||||
return output?.mergeHighlight.highlight
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Reference in a new issue