mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Remove setTimeout from spell check results dispatch (#20342)
GitOrigin-RevId: 9973b216d60b20c2b6aaf5205c13e2db69cbd589
This commit is contained in:
parent
26af3e1ecf
commit
0e40011e14
1 changed files with 3 additions and 5 deletions
|
@ -99,11 +99,9 @@ export class SpellChecker {
|
||||||
unknownWords,
|
unknownWords,
|
||||||
misspellings
|
misspellings
|
||||||
)
|
)
|
||||||
window.setTimeout(() => {
|
|
||||||
view.dispatch({
|
view.dispatch({
|
||||||
effects: compileEffects(result),
|
effects: compileEffects(result),
|
||||||
})
|
})
|
||||||
}, 0)
|
|
||||||
}
|
}
|
||||||
if (unknownWords.length === 0) {
|
if (unknownWords.length === 0) {
|
||||||
processResult([])
|
processResult([])
|
||||||
|
|
Loading…
Reference in a new issue