From a75c191d5b69e0aa232f47b9029664b4d4f621ef Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Wed, 7 Oct 2020 11:43:54 +0100 Subject: [PATCH] Make sure the errors and warnings count is re-read after a compile, even if it does not change. GitOrigin-RevId: 481f33782e4b473e535fbeaee786f04f897f1697 --- .../js/features/preview/components/preview-pane.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/js/features/preview/components/preview-pane.js b/services/web/frontend/js/features/preview/components/preview-pane.js index 31cc0aa1e8..de2a5c3b43 100644 --- a/services/web/frontend/js/features/preview/components/preview-pane.js +++ b/services/web/frontend/js/features/preview/components/preview-pane.js @@ -43,10 +43,14 @@ function PreviewPane({ onToggleLogs={onToggleLogs} /> - {nErrors ? t('n_errors', { count: nErrors }) : ''} + {nErrors && !compilerState.isCompiling + ? t('n_errors', { count: nErrors }) + : ''} - {nWarnings ? t('n_warnings', { count: nWarnings }) : ''} + {nWarnings && !compilerState.isCompiling + ? t('n_warnings', { count: nWarnings }) + : ''} {showLogs ? (