From 9a4feda11b374728cfe011c217afc4b33786e6dd Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Tue, 15 Apr 2025 11:08:58 -0400 Subject: [PATCH] fix(website-listing): Avoid type error if `item.description` is not a string --- src/project/types/website/listing/website-listing-template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project/types/website/listing/website-listing-template.ts b/src/project/types/website/listing/website-listing-template.ts index 50a538b23aa..6b37f380d5d 100644 --- a/src/project/types/website/listing/website-listing-template.ts +++ b/src/project/types/website/listing/website-listing-template.ts @@ -127,7 +127,7 @@ export function templateMarkdownHandler( } } - if (item.description !== undefined && !isPlaceHolder(item.description)) { + if (typeof item.description === "string" && !isPlaceHolder(item.description)) { const maxDescLength = listing[kMaxDescLength] as number || -1; if (maxDescLength > 0) {