mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 14:03:37 -05:00
Remove unnecessary linting check in annotations listener
When user starts typing, compile log annotations are replaced with linter ones, so log errrors can be ignored for this purpose. Because we don't try to autocompile unless the user types something
This commit is contained in:
parent
0c76b06a97
commit
8a8d98935b
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ define [
|
||||||
session.on('changeAnnotation', () ->
|
session.on('changeAnnotation', () ->
|
||||||
hasErrors = session
|
hasErrors = session
|
||||||
.getAnnotations()
|
.getAnnotations()
|
||||||
.filter((annotation) -> annotation.fromLinting && annotation.type == 'error')
|
.filter((annotation) -> annotation.type == 'error')
|
||||||
.length > 0
|
.length > 0
|
||||||
|
|
||||||
if ($rootScope.hasLintingError != hasErrors)
|
if ($rootScope.hasLintingError != hasErrors)
|
||||||
|
|
Loading…
Reference in a new issue