mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 16:43:20 +00:00
Make sure the errors and warnings count is re-read after a compile, even if it does not change.
GitOrigin-RevId: 481f33782e4b473e535fbeaee786f04f897f1697
This commit is contained in:
parent
6e99c7b722
commit
a75c191d5b
1 changed files with 6 additions and 2 deletions
|
@ -43,10 +43,14 @@ function PreviewPane({
|
|||
onToggleLogs={onToggleLogs}
|
||||
/>
|
||||
<span aria-live="polite" className="sr-only">
|
||||
{nErrors ? t('n_errors', { count: nErrors }) : ''}
|
||||
{nErrors && !compilerState.isCompiling
|
||||
? t('n_errors', { count: nErrors })
|
||||
: ''}
|
||||
</span>
|
||||
<span aria-live="polite" className="sr-only">
|
||||
{nWarnings ? t('n_warnings', { count: nWarnings }) : ''}
|
||||
{nWarnings && !compilerState.isCompiling
|
||||
? t('n_warnings', { count: nWarnings })
|
||||
: ''}
|
||||
</span>
|
||||
{showLogs ? (
|
||||
<PreviewLogsPane logEntries={compilerState.logEntries.all} />
|
||||
|
|
Loading…
Reference in a new issue