mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3416 from omnivore-app/fix/web-update-highlight-input
Dont pass library item id to backend when updating highlights
This commit is contained in:
commit
1b3c37bbce
1 changed files with 7 additions and 1 deletions
|
|
@ -41,7 +41,13 @@ export async function updateHighlightMutation(
|
|||
`
|
||||
|
||||
try {
|
||||
const data = await gqlFetcher(mutation, { input })
|
||||
const data = await gqlFetcher(mutation, {
|
||||
input: {
|
||||
highlightId: input.highlightId,
|
||||
annotation: input.annotation,
|
||||
color: input.color,
|
||||
},
|
||||
})
|
||||
const output = data as UpdateHighlightOutput | undefined
|
||||
return output?.updateHighlight.highlight.id
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Reference in a new issue