mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Ensure error is from linting not compile logs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user