Skip to content

Commit 9144c54

Browse files
rajat1saxenaRajat
andauthored
MediaLit bug fix (#694)
Co-authored-by: Rajat <hi@rajatsaxena.dev>
1 parent a205ea2 commit 9144c54

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/web/components/community/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,8 @@ export function CommunityForum({
521521
return (
522522
<Image
523523
src={
524-
options && options.renderActualFile
524+
(options && options.renderActualFile) ||
525+
media.media?.file?.endsWith(".gif")
525526
? media.media.file!
526527
: media.media.thumbnail
527528
}

packages/components-library/src/hooks/use-medialit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export function useMediaLit({
8080
? JSON.parse(mediaString)
8181
: null;
8282
if (media) {
83+
delete media.group;
8384
onUploadComplete?.(media);
8485
resolve(media);
8586
}

0 commit comments

Comments
 (0)