diff --git a/packages/hygraph-dynamic-rows/lib/hygraphDynamicRows.ts b/packages/hygraph-dynamic-rows/lib/hygraphDynamicRows.ts index 5993a71dd2..1d52a95cc1 100644 --- a/packages/hygraph-dynamic-rows/lib/hygraphDynamicRows.ts +++ b/packages/hygraph-dynamic-rows/lib/hygraphDynamicRows.ts @@ -126,7 +126,7 @@ export async function hygraphDynamicRows( const { placement, target, rows, row } = dynamicRow if (!rows && !row) return - const rowsToMerge = rows ?? [row] + const rowsToMerge = rows.length > 0 ? rows : [row] if (!target) { if (placement === 'BEFORE') content.unshift(...rowsToMerge)