Просмотр исходного кода

skip incremental compile after server error

Brian Gough 9 лет назад
Родитель
Сommit
c6d2f0f4e1

+ 3 - 1
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

@@ -105,7 +105,9 @@ define [
 				rootDoc_id: options.rootDocOverride_id or null
 				draft: $scope.draft
 				check: checkType
-				incrementalCompilesEnabled: window.user?.betaProgram
+				# use incremental compile for beta users but revert to a full
+				# compile if there is a server error
+				incrementalCompilesEnabled: window.user?.betaProgram and not $scope.pdf.error
 				_csrf: window.csrfToken
 			}, {params: params}