Merge pull request #2249 from Br0wnHammer/fix/infra-monitor-filters

Fix: Infra Monitors Filters
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-05-12 09:21:41 -07:00
commit b51a3f6b7d
2 files changed
+12 -3

No files matched your search

@@ -68,8 +68,16 @@ const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete
),
},
{ id: "cpu", content: t("cpu"), render: (row) => <CustomGauge progress={row.cpu} /> },
{ id: "memory", content: t("memory"), render: (row) => <CustomGauge progress={row.mem} /> },
{ id: "disk", content: t("disk"), render: (row) => <CustomGauge progress={row.disk} /> },
{
id: "memory",
content: t("memory"),
render: (row) => <CustomGauge progress={row.mem} />,
},
{
id: "disk",
content: t("disk"),
render: (row) => <CustomGauge progress={row.disk} />,
},
{
id: "actions",
content: t("actions"),
@@ -129,6 +137,7 @@ const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete
},
},
onRowClick: (row) => openDetails(row.id),
emptyView: "No monitors found",
}}
/>
);
@@ -73,7 +73,7 @@ const InfrastructureMonitors = () => {
);
}
if (!isLoading && monitors?.length === 0) {
if (!isLoading && typeof summary?.totalMonitors === "undefined" ) {
return (
<Fallback
vowelStart={true}