mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update signature for mobile callback
This commit is contained in:
parent
423189993c
commit
38b58e764a
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue