1
0
Fork 0
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:
Alasdair Smith 2017-09-04 13:22:49 +01:00
parent 9f1adfd0c0
commit fc4a260d95

View file

@ -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)