diff --git a/services/web/frontend/js/shared/context/local-compile-context.tsx b/services/web/frontend/js/shared/context/local-compile-context.tsx index aa4e6d6378..0eb223a5be 100644 --- a/services/web/frontend/js/shared/context/local-compile-context.tsx +++ b/services/web/frontend/js/shared/context/local-compile-context.tsx @@ -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