feat: fix sets extra space
Some checks failed
Build Containers / build-containers-common (push) Has been cancelled
Build / build (22.12.0) (push) Has been cancelled
Build Containers / build-containers (amd64, ubuntu-latest) (push) Has been cancelled
Build Containers / build-containers (arm64, ubuntu-24.04-arm) (push) Has been cancelled
Build Containers / build-container-manifest (push) Has been cancelled

This commit is contained in:
Nevo David 2026-03-06 11:20:57 +07:00
parent 2a194b680e
commit 72e63a41c2

View file

@ -187,10 +187,13 @@ export const AddEditModalInnerInner: FC<AddEditModalProps> = (props) => {
: props.set?.posts?.length
? props.set.posts[0].value.map((p: any) => ({
id: makeId(10),
content: p.content
.split('\n')
.map((line: string) => `<p>${line}</p>`)
.join(''),
content:
p.content.indexOf('<p>') > -1
? p.content
: p.content
.split('\n')
.map((line: string) => `<p>${line}</p>`)
.join(''),
// @ts-ignore
media: p.media,
}))