mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-24 16:43:41 +00:00
fix: incorrect cardId
This commit is contained in:
@@ -274,7 +274,7 @@ router.get("/defaults", authenticateToken, async (_req, res) => {
|
|||||||
order: 4,
|
order: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
cardId: "hostsNeedingUpdates",
|
cardId: "upToDateHosts",
|
||||||
title: "Up to date",
|
title: "Up to date",
|
||||||
icon: "CheckCircle",
|
icon: "CheckCircle",
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
@@ -1154,11 +1154,11 @@ const Dashboard = () => {
|
|||||||
<>
|
<>
|
||||||
{cardGroups.map((group, groupIndex) => (
|
{cardGroups.map((group, groupIndex) => (
|
||||||
<div
|
<div
|
||||||
key={`${group.type}-${group.cards[0]?.cardId || groupIndex}`}
|
key={`group-${group.type}-${groupIndex}`}
|
||||||
className={getGroupClassName(group.type)}
|
className={getGroupClassName(group.type)}
|
||||||
>
|
>
|
||||||
{group.cards.map((card, cardIndex) => (
|
{group.cards.map((card, cardIndex) => (
|
||||||
<div key={`${groupIndex}-${card.cardId}-${cardIndex}`}>
|
<div key={`card-${card.cardId}-${groupIndex}-${cardIndex}`}>
|
||||||
{renderCard(card.cardId)}
|
{renderCard(card.cardId)}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user