fix(db-postgres) incorrect currentTableName in find for blocks (#4524)
This commit is contained in:
35
test/localization/collections/NestedToArrayAndBlock/index.ts
Normal file
35
test/localization/collections/NestedToArrayAndBlock/index.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { CollectionConfig } from '../../../../packages/payload/src/collections/config/types'
|
||||
|
||||
export const nestedToArrayAndBlockCollectionSlug = 'nested-to-array-and-block'
|
||||
|
||||
export const NestedToArrayAndBlock: CollectionConfig = {
|
||||
slug: nestedToArrayAndBlockCollectionSlug,
|
||||
fields: [
|
||||
{
|
||||
type: 'blocks',
|
||||
name: 'blocks',
|
||||
blocks: [
|
||||
{
|
||||
slug: 'block',
|
||||
fields: [
|
||||
{
|
||||
name: 'array',
|
||||
type: 'array',
|
||||
fields: [
|
||||
{
|
||||
name: 'text',
|
||||
type: 'text',
|
||||
localized: true,
|
||||
},
|
||||
{
|
||||
name: 'textNotLocalized',
|
||||
type: 'text',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user