Skip to content

Commit

Permalink
[frontend] fix content export pdf (#8976)
Browse files Browse the repository at this point in the history
  • Loading branch information
marieflorescontact authored Nov 13, 2024
1 parent 864bcea commit c2ec1fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ class StixCoreObjectContentComponent extends Component {
let htmlData = currentContent
.replaceAll('id="undefined" ', '')
.replaceAll(regex, '');
if (currentFileId.endsWith('.md')) {
if (currentFileId && currentFileId.endsWith('.md')) {
htmlData = renderToString(compiler(htmlData, { wrapper: null }));
}
const ret = htmlToPdfmake(htmlData, {
Expand Down

0 comments on commit c2ec1fd

Please sign in to comment.