Compare commits

...

1 Commits

Author SHA1 Message Date
Dan Ribbens
8f5ff18fb1 fix(db-postgres): _order is removed from read transform 2025-05-06 18:31:11 -04:00
2 changed files with 14 additions and 3 deletions

View File

@@ -666,9 +666,10 @@ export const traverseFields = <T extends Record<string, unknown>>({
withinArrayOrBlockLocale: locale || withinArrayOrBlockLocale,
})
if ('_order' in ref) {
delete ref._order
}
// TODO: we need to only clean this up for arrays, blocks, and hasMany fields
// if ('_order' in ref) {
// delete ref._order
// }
return
}

View File

@@ -23,5 +23,15 @@ export const OrderableCollection: CollectionConfig = {
type: 'relationship',
relationTo: orderableJoinSlug,
},
{
name: 'group',
type: 'group',
fields: [
{
name: 'text',
type: 'text',
},
],
},
],
}