Skip to content

Commit 9a4feda

Browse files
authored
fix(website-listing): Avoid type error if item.description is not a string
1 parent 70d973d commit 9a4feda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/project/types/website/listing/website-listing-template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function templateMarkdownHandler(
127127
}
128128
}
129129

130-
if (item.description !== undefined && !isPlaceHolder(item.description)) {
130+
if (typeof item.description === "string" && !isPlaceHolder(item.description)) {
131131
const maxDescLength = listing[kMaxDescLength] as number ||
132132
-1;
133133
if (maxDescLength > 0) {

0 commit comments

Comments
 (0)