Update signature for mobile callback

This commit is contained in:
Jackson Harper
2023-08-24 12:15:01 +08:00
parent 423189993c
commit 38b58e764a

View File

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