chore: fix linting errors and ts bugs.
This commit is contained in:
@@ -31,14 +31,14 @@ export const Events: CollectionConfig = {
|
||||
url: ({ data, req }) =>
|
||||
generatePreviewPath({
|
||||
slug: data?.spaPath || data?.slug,
|
||||
collection: 'events' as any,
|
||||
collection: 'events',
|
||||
req,
|
||||
}),
|
||||
},
|
||||
preview: (data, { req }) =>
|
||||
generatePreviewPath({
|
||||
slug: ((data?.spaPath as string | undefined) || (data?.slug as string)),
|
||||
collection: 'events' as any,
|
||||
collection: 'events',
|
||||
req,
|
||||
}),
|
||||
useAsTitle: 'title',
|
||||
|
||||
Reference in New Issue
Block a user