mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
added check of compilation result status before setting pdfUrl/pdfDownloadUrl (#5697)
GitOrigin-RevId: ebf78bc2f98a952411875740fe912e275f83b224
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user