Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
wuls committed May 14, 2024
1 parent 1429c73 commit 4a49088
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/generators/solid/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ export const blockToSolid = ({
str += '>';
if (json.children) {
str += json.children
.flatMap((item) => {
.map((item) => {
const Fragment = item.children.find((item) => item.name === 'Fragment');
return Fragment ? Fragment.children : item;
if (Fragment) {
item.children = [...Fragment.children];
}
return item;
})
.filter(filterEmptyTextNodes)
.map((item) => blockToSolid({ component, json: item, options }))
Expand Down

0 comments on commit 4a49088

Please sign in to comment.