Skip to content

Commit f76d5bb

Browse files
committed
fix: detect undefined & null value
1 parent ffe0a78 commit f76d5bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/components/package/pannels/overview/overview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class Overview {
119119
const fragment = document.createDocumentFragment();
120120

121121
const { homepage } = this.package.links;
122-
if (homepage.href !== null) {
122+
if (typeof homepage.href === "string") {
123123
fragment.appendChild(utils.createLiField("Homepage", homepage.href, { isLink: true }));
124124
}
125125
fragment.appendChild(utils.createLiField("Author", this.author));

0 commit comments

Comments
 (0)