diff --git a/services/api/collections/createCollection.ts b/services/api/collections/createCollection.ts index 33a778d0..0c7a928d 100644 --- a/services/api/collections/createCollection.ts +++ b/services/api/collections/createCollection.ts @@ -6,7 +6,7 @@ export type Request = { title: string; tags: string[]; content: { - comment: string; + comment: string | null; label: string | null; order: number; slug: string; diff --git a/services/api/collections/updateCollection.ts b/services/api/collections/updateCollection.ts index 02228cc4..11a0c3e6 100644 --- a/services/api/collections/updateCollection.ts +++ b/services/api/collections/updateCollection.ts @@ -6,7 +6,7 @@ type Request = { title: string; tags: string[]; content: { - comment: string; + comment: string | null; label: string | null; order: number; slug: string; diff --git a/services/providers/collection-provider.tsx b/services/providers/collection-provider.tsx index 943036ef..a939b156 100644 --- a/services/providers/collection-provider.tsx +++ b/services/providers/collection-provider.tsx @@ -81,7 +81,7 @@ export default function CollectionProvider({ children }: Props) { .map((group, i) => { return group.items.map((item, k) => { return { - comment: '', + comment: null, label: group.title || null, order: 0, slug: item.content.slug,