fix: add null check for fullname in FilePreviewBetter component to prevent errors

This commit is contained in:
faisolavolut 2025-04-21 10:11:18 +07:00
parent 637556e335
commit 333d5539da
1 changed files with 1 additions and 0 deletions

View File

@ -289,6 +289,7 @@ export const FilePreviewBetter = ({
</div>
);
if (
file?.fullname &&
[".png", ".jpeg", ".jpg", ".webp"].find((e) => file?.fullname.endsWith(e))
) {
content = (