fix download and download name for tracking document

This commit is contained in:
smanylov
2026-05-05 16:01:08 +07:00
parent ae0526a58a
commit e97dd392c0
2 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -57,7 +57,7 @@ export default async function Page({ searchParams }: PageProps) {
error = 'Не удалось загрузить информацию о документе';
}
const documentTitle = title || 'FileName';
const documentTitle = response?.fileName || 'FileName';
if (error || !response) {
return (
@@ -132,6 +132,7 @@ export default async function Page({ searchParams }: PageProps) {
<PdfViewer
fileId={docid}
fileName={documentTitle}
showDownload={response.permissions?.DOWNLOAD}
/>
</div>
</div>