From 7f59a2329498d9f7b4372d599960e30188f37556 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 23 Jan 2024 14:51:15 +0800 Subject: [PATCH] Dont pass library item id to backend when updating highlights The native (iOS and Android) code needs this param but we cant send it to the web. --- .../lib/networking/mutations/updateHighlightMutation.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/web/lib/networking/mutations/updateHighlightMutation.ts b/packages/web/lib/networking/mutations/updateHighlightMutation.ts index 6f749ed28..5525fdc88 100644 --- a/packages/web/lib/networking/mutations/updateHighlightMutation.ts +++ b/packages/web/lib/networking/mutations/updateHighlightMutation.ts @@ -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 {