Skip to content

Commit

Permalink
Merge pull request #2268 from graphcommerce-org/fix/dynamic-rows-non-…
Browse files Browse the repository at this point in the history
…extensible-object-err

Fix/dynamic rows non extensible object err
  • Loading branch information
paales authored May 17, 2024
2 parents e64e2f5 + 8ffe2d5 commit d17180f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hot-forks-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/hygraph-dynamic-rows": patch
---

Fix for non extensible object error in Dynamic Row package
2 changes: 1 addition & 1 deletion packages/hygraph-dynamic-rows/lib/hygraphDynamicRows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function hygraphDynamicRows(
const page = pageResult.data.pages[0] as Page | undefined

// Create a copy of the content array.
const content = page?.content ?? []
const content = [...(page?.content ?? [])]

dynamicResult?.data.dynamicRows.forEach((dynamicRow) => {
const { placement, target, rows, row } = dynamicRow
Expand Down

0 comments on commit d17180f

Please sign in to comment.