fix: add null check for fullname in FilePreviewBetter component to prevent errors
This commit is contained in:
parent
637556e335
commit
333d5539da
|
|
@ -289,6 +289,7 @@ export const FilePreviewBetter = ({
|
|||
</div>
|
||||
);
|
||||
if (
|
||||
file?.fullname &&
|
||||
[".png", ".jpeg", ".jpg", ".webp"].find((e) => file?.fullname.endsWith(e))
|
||||
) {
|
||||
content = (
|
||||
|
|
|
|||
Loading…
Reference in New Issue