fix: incorrect cardId

This commit is contained in:
tigattack
2025-09-25 01:56:22 +01:00
parent 22f6befc89
commit 469107c149
2 changed files with 3 additions and 3 deletions

View File

@@ -274,7 +274,7 @@ router.get("/defaults", authenticateToken, async (_req, res) => {
order: 4,
},
{
cardId: "hostsNeedingUpdates",
cardId: "upToDateHosts",
title: "Up to date",
icon: "CheckCircle",
enabled: true,

View File

@@ -1154,11 +1154,11 @@ const Dashboard = () => {
<>
{cardGroups.map((group, groupIndex) => (
<div
key={`${group.type}-${group.cards[0]?.cardId || groupIndex}`}
key={`group-${group.type}-${groupIndex}`}
className={getGroupClassName(group.type)}
>
{group.cards.map((card, cardIndex) => (
<div key={`${groupIndex}-${card.cardId}-${cardIndex}`}>
<div key={`card-${card.cardId}-${groupIndex}-${cardIndex}`}>
{renderCard(card.cardId)}
</div>
))}