Skip to content

Commit

Permalink
resolves #857 renseigne vide quand il n'y a pas de version (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed May 3, 2023
1 parent cc1e4d1 commit 8496971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/components/Export.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Export ({ bookId, articleVersionId, articleId, bib, name

const exportUrl = bookId
? `${processEndpoint}/cgi-bin/exportBook/exec.cgi?id=${exportId}&book=${bookId}&processor=xelatex&source=${exportEndpoint}/&format=${format}&bibstyle=${csl}&toc=${Boolean(toc)}&tld=${tld}&unnumbered=${unnumbered}`
: `${pandocExportEndpoint}/generique/export/${host}/${articleId}/${exportId}/?with_toc=${toc}&with_ascii=0&bibliography_style=${csl}&formats=originals&formats=${format}&version=${articleVersionId}`
: `${pandocExportEndpoint}/generique/export/${host}/${articleId}/${exportId}/?with_toc=${toc}&with_ascii=0&bibliography_style=${csl}&formats=originals&formats=${format}&version=${articleVersionId ?? ''}`

return (
<section className={styles.export}>
Expand Down

0 comments on commit 8496971

Please sign in to comment.