Removing accidental log.

This commit is contained in:
Roland 2023-02-22 17:58:36 -07:00
parent 1c3288d910
commit 8f7d9f208c
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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 <React.Fragment>
<ModalHeader>
@ -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;