Browse Source

refac: file item modal

Timothy Jaeryang Baek 4 months ago
parent
commit
a8a9b35153
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/common/FileItemModal.svelte

+ 1 - 1
src/lib/components/common/FileItemModal.svelte

@@ -25,7 +25,7 @@
 		(item?.name && item?.name.toLowerCase().endsWith('.pdf'));
 
 	$: isAudio =
-		item?.meta?.content_type.startsWith('audio/') ||
+		(item?.meta?.content_type ?? '').startsWith('audio/') ||
 		(item?.name && item?.name.toLowerCase().endsWith('.mp3')) ||
 		(item?.name && item?.name.toLowerCase().endsWith('.wav')) ||
 		(item?.name && item?.name.toLowerCase().endsWith('.ogg')) ||