diff --git a/src/components/document-action-buttons/DocumentActionButtons.tsx b/src/components/document-action-buttons/DocumentActionButtons.tsx index ea2eb99a..5df24666 100644 --- a/src/components/document-action-buttons/DocumentActionButtons.tsx +++ b/src/components/document-action-buttons/DocumentActionButtons.tsx @@ -10,6 +10,7 @@ import styles from "./DocumentActionButtons.module.css"; interface IProps { preview: Link; + title: string; amplitudeEventData: DokumentHendelse; } @@ -51,7 +52,7 @@ export function DocumentActionButtons(props: IProps) { function handleDownload() { logDocumentDownloaded(); const a = document.createElement("a"); - a.download = props.amplitudeEventData.dokumentTittel; + a.download = props.title; a.href = preview.href; a.click(); }