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:
Jackson Harper
2024-01-23 15:24:10 +08:00
committed by GitHub

View File

@ -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 {