From 8f7d9f208cd9aba47224433c2d425346fc47fbce Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 22 Feb 2023 17:58:36 -0700 Subject: [PATCH] Removing accidental log. --- app/src/components/FilePreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/FilePreview.js b/app/src/components/FilePreview.js index 9c865d93..3e8a09a5 100644 --- a/app/src/components/FilePreview.js +++ b/app/src/components/FilePreview.js @@ -87,6 +87,7 @@ function getVideoModal(path) { function getAudioModal(path) { const url = getMediaPathURL(path); const name = path['path'].replace(/^.*[\\\/]/, ''); + // Some audio files may not have the correct mimetype. Trust the suffix identifies an audio file. const type = path['mimetype'] !== 'application/octet-stream' ? path['mimetype'] : 'audio/mpeg'; return @@ -136,7 +137,6 @@ export function FilePreviewWrapper({children}) { React.useEffect(() => { setPreviewModal(null); - console.log(previewFile); if (previewFile && !_.isObject(previewFile)) { console.error(`Unknown previewFile type: ${typeof previewFile}`); return;