feat: fix media in a set
This commit is contained in:
parent
c7ccf37a94
commit
49ecc81763
|
|
@ -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,
|
||||
})
|
||||
) || [],
|
||||
})),
|
||||
})),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue