From c6d2f0f4e1490aa52e6061e63ac630d5bbf75907 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 7 Sep 2017 15:05:42 +0100 Subject: [PATCH] skip incremental compile after server error --- .../public/coffee/ide/pdf/controllers/PdfController.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 42c1cd1bc8..d06d5822a4 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/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}