Remove test text when creating highlights

This commit is contained in:
Jackson Harper 2023-06-27 16:40:38 +08:00
parent 24780ea5f6
commit add720d523

View file

@ -444,7 +444,7 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
await removeHighlightCallback()
break
case 'create':
await createHighlightCallback('none')
await createHighlightCallback()
break
case 'comment':
if (props.highlightBarDisabled || focusedHighlight) {
@ -657,7 +657,7 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
dispatchHighlightMessage('noteCreated')
} else {
try {
await createHighlightCallback('none')
await createHighlightCallback()
dispatchHighlightMessage('noteCreated')
} catch (error) {
dispatchHighlightError('saveAnnotation', error)