mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 14:21:54 +00:00
Ensure error is from linting not compile logs
This commit is contained in:
parent
9f1adfd0c0
commit
fc4a260d95
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ define [
|
|||
session.on('changeAnnotation', () ->
|
||||
hasErrors = session
|
||||
.getAnnotations()
|
||||
.filter((annotation) -> annotation.type == 'error')
|
||||
.filter((annotation) -> annotation.fromLinting && annotation.type == 'error')
|
||||
.length > 0
|
||||
|
||||
if ($rootScope.hasLintingError != hasErrors)
|
||||
|
|
Loading…
Add table
Reference in a new issue