Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: fix media in a set

Nevo David49ecc81763d4
diff --git a/apps/frontend/src/components/new-launch/manage.modal.tsx b/apps/frontend/src/components/new-launch/manage.modal.tsx
index ba98a3edf..be53586b1 100644
--- a/apps/frontend/src/components/new-launch/manage.modal.tsx
+++ b/apps/frontend/src/components/new-launch/manage.modal.tsx
@@ -249,7 +249,16 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {
value: post.values.map((value: any) => ({
...(value.id ? { id: value.id } : {}),
content: value.content.slice(0, post.maximumCharacters || 1000000),
- image: value.media.map(({ id, path, alt, thumbnail, thumbnailTimestamp }: any) => ({ id, path, alt, thumbnail, thumbnailTimestamp })) || [],
+ image:
+ (value?.media || []).map(
+ ({ id, path, alt, thumbnail, thumbnailTimestamp }: any) => ({
+ id,
+ path,
+ alt,
+ thumbnail,
+ thumbnailTimestamp,
+ })
+ ) || [],
})),
})),
};