From caf7c214537e5bd3a13a08a6f47efdfa93938ef5 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Thu, 2 Apr 2026 15:32:53 +0200 Subject: [PATCH] Make description optional in collection editor (#38536) --- app/javascript/mastodon/api_types/collections.ts | 2 +- app/javascript/mastodon/features/collections/editor/details.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/api_types/collections.ts b/app/javascript/mastodon/api_types/collections.ts index fae95875d1..3edaa64c95 100644 --- a/app/javascript/mastodon/api_types/collections.ts +++ b/app/javascript/mastodon/api_types/collections.ts @@ -16,7 +16,7 @@ export interface ApiCollectionJSON { item_count: number; name: string; - description: string; + description: string | null; tag: ApiTagJSON | null; language: string | null; sensitive: boolean; diff --git a/app/javascript/mastodon/features/collections/editor/details.tsx b/app/javascript/mastodon/features/collections/editor/details.tsx index ce0019353d..04a6ad1428 100644 --- a/app/javascript/mastodon/features/collections/editor/details.tsx +++ b/app/javascript/mastodon/features/collections/editor/details.tsx @@ -182,7 +182,7 @@ export const CollectionDetails: React.FC = () => { />