From 5d50bdf26872eb8cf955e0c22168f6deda97d5ca Mon Sep 17 00:00:00 2001 From: powerstomp <119428043+powerstomp@users.noreply.github.com> Date: Wed, 23 Sep 2026 19:26:12 +0700 Subject: [PATCH] fix(Discogs): Handle null format descriptions --- providers/Discogs/api_types.ts | 2 +- providers/Discogs/format.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/Discogs/api_types.ts b/providers/Discogs/api_types.ts index 73c57545..dbc780d0 100644 --- a/providers/Discogs/api_types.ts +++ b/providers/Discogs/api_types.ts @@ -91,7 +91,7 @@ export interface ReleaseFormat { /** Numeric quantity of the format. */ qty: string; /** Descriptions like size, speed, status etc. */ - descriptions: string[]; + descriptions?: string[] | null; /** Freeform text, may contain packaging. */ text?: string; } diff --git a/providers/Discogs/format.ts b/providers/Discogs/format.ts index e25766a5..e77f2ada 100644 --- a/providers/Discogs/format.ts +++ b/providers/Discogs/format.ts @@ -13,7 +13,7 @@ export function convertFormat(format: ReleaseFormat): Array