mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
Fix "update in progress" error when removing highlight ranges (#21024)
GitOrigin-RevId: 025e69f10b6010fe978ac57838ae17c113358633
This commit is contained in:
committed by
Copybot
parent
52e49c4f6b
commit
993e34f421
@@ -70,7 +70,9 @@ export const ReviewPanelEntry: FC<{
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
if (hoverRanges) {
|
||||
view.dispatch(clearHighlightRanges(op))
|
||||
setTimeout(() => {
|
||||
view.dispatch(clearHighlightRanges(op))
|
||||
})
|
||||
}
|
||||
}
|
||||
}, []) // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
Reference in New Issue
Block a user