fix article status bug

Signed-off-by: Tobias Erbshäußer <tobias@tesoft.dev>
This commit is contained in:
2026-05-24 09:23:09 +02:00
parent 85ed467814
commit 5311930d1b
+1 -1
View File
@@ -105,7 +105,7 @@ export class TesoftBlogArticleList extends TesoftComponent {
const heading = anchor.querySelector<HTMLHeadingElement>("h3")!; const heading = anchor.querySelector<HTMLHeadingElement>("h3")!;
heading.textContent = article.title; heading.textContent = article.title;
const badgeText = getBadgeText(body.status); const badgeText = getBadgeText(article.status);
if (badgeText) { if (badgeText) {
const badge = document.createElement("tesoft-badge") as TesoftBadge; const badge = document.createElement("tesoft-badge") as TesoftBadge;
badge.textContent = badgeText; badge.textContent = badgeText;