Skip to content

Commit d2b180f

Browse files
committed
Ignore empty meta image from website listing item as pageMetadata does
1 parent 91c665a commit d2b180f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ async function listItemFromFile(
11231123
descriptionPlaceholder(inputTarget?.outputHref, maxDescLength);
11241124

11251125
const imageRaw = documentMeta?.image as string | boolean;
1126-
const image = imageRaw !== undefined && typeof imageRaw === "string"
1126+
const image = imageRaw && typeof imageRaw === "string"
11271127
? pathWithForwardSlashes(
11281128
listingItemHref(imageRaw, dirname(projectRelativePath)),
11291129
)

0 commit comments

Comments
 (0)