mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #4285 from omnivore-app/fix/web-update-highlights-input
Fix the input values on update highlight to not send extra values
This commit is contained in:
commit
d839fc68ce
1 changed files with 6 additions and 1 deletions
|
|
@ -91,7 +91,12 @@ export const useUpdateHighlight = () => {
|
|||
input: UpdateHighlightInput
|
||||
}) => {
|
||||
const result = (await gqlFetcher(GQL_UPDATE_HIGHLIGHT, {
|
||||
input: variables.input,
|
||||
input: {
|
||||
highlightId: variables.input.highlightId,
|
||||
annotation: variables.input.annotation,
|
||||
sharedAt: variables.input.sharedAt,
|
||||
color: variables.input.color,
|
||||
},
|
||||
})) as UpdateHighlightData
|
||||
if (result.updateHighlight.errorCodes?.length) {
|
||||
throw new Error(result.updateHighlight.errorCodes[0])
|
||||
|
|
|
|||
Loading…
Reference in a new issue