From 7e9180cb66b685fcb252b6bec863b55dc1858883 Mon Sep 17 00:00:00 2001 From: Sandip Mane Date: Tue, 24 Dec 2024 16:22:05 +0530 Subject: [PATCH] Fixes issues with attachment previews --- src/components/Common/FileIcon.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Common/FileIcon.jsx b/src/components/Common/FileIcon.jsx index f4083002..89ebc92a 100644 --- a/src/components/Common/FileIcon.jsx +++ b/src/components/Common/FileIcon.jsx @@ -1,7 +1,7 @@ import { FileIcon, defaultStyles } from "react-file-icon"; const File = ({ fileName, className }) => { - const extension = fileName.match(/([^.]+)$/)[1]; + const extension = fileName.match(/([^.]+)$/) & [1]; return (