fix: issue with community post type
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
import type { CollectionConfig } from '../../../../packages/payload/src/collections/config/types.js'
|
import type { CollectionConfig } from '../../../../packages/payload/src/collections/config/types.js'
|
||||||
|
|
||||||
import { mediaSlug } from '../Media/index.js'
|
import { mediaSlug } from '../Media/index.js'
|
||||||
import { CollapsibleLabel } from './CollapsibleLabel.js'
|
|
||||||
import { RowLabel } from './RowLabel.js'
|
|
||||||
|
|
||||||
export const postsSlug = 'posts'
|
export const postsSlug = 'posts'
|
||||||
|
|
||||||
@@ -55,26 +53,6 @@ export const PostsCollection: CollectionConfig = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: 'collapsible',
|
|
||||||
fields: [],
|
|
||||||
label: 'CollapsibleLabel',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'tester',
|
|
||||||
type: 'array',
|
|
||||||
admin: {
|
|
||||||
components: {
|
|
||||||
RowLabel,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
fields: [
|
|
||||||
{
|
|
||||||
name: 'title',
|
|
||||||
type: 'text',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
versions: {
|
versions: {
|
||||||
drafts: true,
|
drafts: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user