Skip to content

Commit

Permalink
fix JSONEmpty when content starts with \n
Browse files Browse the repository at this point in the history
fixes MAN-2095, fixes #3175
  • Loading branch information
sipec committed Dec 3, 2024
1 parent 891fbcd commit 943e5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/components/contract/contract-description.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function JSONEmpty(text: string | JSONContent) {
return !(
text.content &&
text.content.length > 0 &&
(text.content[0].content || text.content[0].attrs)
text.content.some((node) => node.content || node.attrs)
)
}
return true
Expand Down

0 comments on commit 943e5d9

Please sign in to comment.