diff --git a/packages/excalidraw/data/blob.ts b/packages/excalidraw/data/blob.ts index ffa472767..0934b8efd 100644 --- a/packages/excalidraw/data/blob.ts +++ b/packages/excalidraw/data/blob.ts @@ -108,8 +108,10 @@ export const isImageFileHandle = (handle: FileSystemHandle | null) => { }; const getExtensionFromFilename = (filename?: string): string | null => { - if (!filename) return null; - const ext = filename.split('.').pop()?.toLowerCase(); + if (!filename) { + return null; + } + const ext = filename.split(".").pop()?.toLowerCase(); return ext || null; };