mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix "update in progress" error when removing highlight ranges (#21024)
GitOrigin-RevId: 025e69f10b6010fe978ac57838ae17c113358633
This commit is contained in:
parent
ba0de4f1e9
commit
e00831761a
1 changed files with 3 additions and 1 deletions
|
@ -70,7 +70,9 @@ export const ReviewPanelEntry: FC<{
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return () => {
|
return () => {
|
||||||
if (hoverRanges) {
|
if (hoverRanges) {
|
||||||
|
setTimeout(() => {
|
||||||
view.dispatch(clearHighlightRanges(op))
|
view.dispatch(clearHighlightRanges(op))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, []) // eslint-disable-line react-hooks/exhaustive-deps
|
}, []) // eslint-disable-line react-hooks/exhaustive-deps
|
||||||
|
|
Loading…
Reference in a new issue