mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
added check of compilation result status before setting pdfUrl/pdfDownloadUrl (#5697)
GitOrigin-RevId: ebf78bc2f98a952411875740fe912e275f83b224
This commit is contained in:
parent
07caf75004
commit
8b85ef36eb
1 changed files with 4 additions and 2 deletions
|
@ -229,10 +229,12 @@ export function CompileProvider({ children }) {
|
|||
setLogEntryAnnotations(
|
||||
buildLogEntryAnnotations(result.logEntries.all, ide.fileTreeManager)
|
||||
)
|
||||
if (data.status === 'success') {
|
||||
setPdfDownloadUrl(result.pdfDownloadUrl)
|
||||
setPdfUrl(result.pdfUrl)
|
||||
}
|
||||
setLogEntries(result.logEntries)
|
||||
setFileList(result.fileList)
|
||||
setPdfDownloadUrl(result.pdfDownloadUrl)
|
||||
setPdfUrl(result.pdfUrl)
|
||||
setRawLog(result.log)
|
||||
|
||||
// sample compile stats for real users
|
||||
|
|
Loading…
Reference in a new issue