Skip to content

Commit

Permalink
Fix default renderer of layout block (#6961)
Browse files Browse the repository at this point in the history
  • Loading branch information
datner authored Nov 18, 2021
1 parent 11a5034 commit 18e3168
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-poets-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/document-renderer': patch
---

Fixed default renderer of `layout` block
4 changes: 3 additions & 1 deletion packages/document-renderer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export const defaultRenderers: Renderers = {
gridTemplateColumns: layout.map(x => `${x}fr`).join(' '),
}}
>
{children}
{children.map((element, i) => (
<div key={i}>{element}</div>
))}
</div>
);
},
Expand Down

0 comments on commit 18e3168

Please sign in to comment.