mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
[web] operate on shadow-copy of compileResponse.outputFiles (#24330)
GitOrigin-RevId: 49336daf11b2a011d03b7469aa4c0ffed72b279a
This commit is contained in:
@@ -383,7 +383,8 @@ export const LocalCompileProvider: FC = ({ children }) => {
|
||||
const outputFiles = new Map()
|
||||
|
||||
for (const outputFile of data.outputFiles) {
|
||||
outputFiles.set(outputFile.path, outputFile)
|
||||
// Use a shadow-copy, we will update it in place and append to .url.
|
||||
outputFiles.set(outputFile.path, { ...outputFile })
|
||||
}
|
||||
|
||||
// set the PDF context
|
||||
|
||||
Reference in New Issue
Block a user