diff --git a/src/public/app/services/note_content_renderer.js b/src/public/app/services/note_content_renderer.js index 6e121c264..1ae731ddd 100644 --- a/src/public/app/services/note_content_renderer.js +++ b/src/public/app/services/note_content_renderer.js @@ -39,7 +39,7 @@ async function getRenderedContent(note, options = {}) { .css("max-width", "100%") ); } - else if (!options.tooltip && ['file', 'pdf', 'audio', 'video']) { + else if (!options.tooltip && ['file', 'pdf', 'audio', 'video'].includes(type)) { const $downloadButton = $(''); const $openButton = $('');