Fix viewer export (#5713)

This commit is contained in:
Reece Browne
2026-02-13 12:16:52 +00:00
committed by GitHub
parent 7c3c7937b3
commit e01734fb7d
3 changed files with 24 additions and 4 deletions
@@ -585,6 +585,11 @@ const EmbedPdfViewerContent = ({
key={currentFile && isStirlingFile(currentFile) ? currentFile.fileId : (effectiveFile.file instanceof File ? effectiveFile.file.name : effectiveFile.url)}
file={effectiveFile.file}
url={effectiveFile.url}
fileName={
previewFile ? previewFile.name :
(currentFile && isStirlingFile(currentFile) ? currentFile.name :
(effectiveFile?.file instanceof File ? effectiveFile.file.name : undefined))
}
enableAnnotations={shouldEnableAnnotations}
showBakedAnnotations={isAnnotationsVisible}
enableRedaction={shouldEnableRedaction}