mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 20:31:00 +00: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(
|
setLogEntryAnnotations(
|
||||||
buildLogEntryAnnotations(result.logEntries.all, ide.fileTreeManager)
|
buildLogEntryAnnotations(result.logEntries.all, ide.fileTreeManager)
|
||||||
)
|
)
|
||||||
|
if (data.status === 'success') {
|
||||||
|
setPdfDownloadUrl(result.pdfDownloadUrl)
|
||||||
|
setPdfUrl(result.pdfUrl)
|
||||||
|
}
|
||||||
setLogEntries(result.logEntries)
|
setLogEntries(result.logEntries)
|
||||||
setFileList(result.fileList)
|
setFileList(result.fileList)
|
||||||
setPdfDownloadUrl(result.pdfDownloadUrl)
|
|
||||||
setPdfUrl(result.pdfUrl)
|
|
||||||
setRawLog(result.log)
|
setRawLog(result.log)
|
||||||
|
|
||||||
// sample compile stats for real users
|
// sample compile stats for real users
|
||||||
|
|
Loading…
Reference in a new issue