From 38b58e764a156fcbe6ba748c6c4e4179f5cc83ad Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 24 Aug 2023 12:15:01 +0800 Subject: [PATCH] Update signature for mobile callback --- packages/web/components/templates/article/HighlightsLayer.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/web/components/templates/article/HighlightsLayer.tsx b/packages/web/components/templates/article/HighlightsLayer.tsx index a7ed6f4a6..3f2ef264d 100644 --- a/packages/web/components/templates/article/HighlightsLayer.tsx +++ b/packages/web/components/templates/article/HighlightsLayer.tsx @@ -701,7 +701,9 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element { dispatchHighlightMessage('noteCreated') } else { try { - await createHighlightCallback(event.annotation) + await createHighlightCallback({ + annotation: event.annotation, + }) dispatchHighlightMessage('noteCreated') } catch (error) { dispatchHighlightError('saveAnnotation', error)