Skip to content

Commit ea1ca90

Browse files
committed
Fix subtype extraction in file extension utility
1 parent 778bf8f commit ea1ca90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/app/(org)/dashboard/caps/components/web-recorder-dialog/useWebRecorder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const getFileExtensionFromMime = (mime?: string | null) => {
8282
if (!subtypeWithParams) return "mp4";
8383
const [subtypeWithSuffix] = subtypeWithParams.split(";");
8484
if (!subtypeWithSuffix) return "mp4";
85-
const [subtype] = subtypeWithSuffix.split("+");
85+
const [subtype = ""] = subtypeWithSuffix.split("+");
8686
const normalized = subtype.trim().toLowerCase();
8787
return normalized || "mp4";
8888
};

0 commit comments

Comments
 (0)