Skip to content

Commit

Permalink
Ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
abbradar committed Sep 28, 2024
1 parent 4352008 commit f8f9a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const attrToDocumentLink = (
}
const filename =
filenameRaw === undefined
? `${ref.name}.pdf`
? `${ref.data.name}.pdf`
: filenameRaw + (filenameHasExtension(filenameRaw) ? '' : '.pdf')

return { type: 'document', template: ref.data, filename, args }
Expand Down

0 comments on commit f8f9a77

Please sign in to comment.