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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user