Skip to content

Commit

Permalink
Revert to managed collection field
Browse files Browse the repository at this point in the history
  • Loading branch information
huntercaron committed Jan 13, 2025
1 parent 4c75b2f commit 3293814
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions starters/cms/src/data.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import type {
CollectionItemData,
ManagedCollection,
ManagedCollectionField,
SupportedCollectionField,
} from "framer-plugin"
import type { CollectionItemData, ManagedCollection, ManagedCollectionField } from "framer-plugin"

import { framer } from "framer-plugin"

Expand All @@ -14,7 +9,7 @@ export const PLUGIN_KEYS = {

export interface DataSource {
id: string
fields: readonly SupportedCollectionField[]
fields: readonly ManagedCollectionField[]
items: Record<string, unknown>[]
}

Expand Down Expand Up @@ -101,7 +96,7 @@ export async function syncCollection(
collection: ManagedCollection,
dataSource: DataSource,
fields: readonly ManagedCollectionField[],
slugField: SupportedCollectionField
slugField: ManagedCollectionField
) {
const sanitizedFields = fields.map(field => ({
...field,
Expand Down

0 comments on commit 3293814

Please sign in to comment.