This commit is contained in:
Alex Holliday committed 2025-12-30 20:30:20 +00:00
1 parent f56f91c31d
commit 7a01a8a8a3
7 files changed
+56 -36

No files matched your search

+1 -3
View File
@@ -38,9 +38,7 @@ const DockerDetailsPage = () => {
const monitor = response?.data?.monitor;
const stats = response?.data?.stats;
const checks = (response?.data?.checks || []) as any;
const latestCheck = checks[0];
const snapshot = latestCheck?.runningContainersSnapshot || [];
console.log(checks);
const snapshot = monitor?.latestChecks?.[0].containerSnapshot || [];
const palette = getStatusPalette(monitor?.status || "initializing");
const streakDuration = stats?.currentStreakStartedAt
@@ -31,7 +31,6 @@ export const DockerMonitorsTable = ({
const navigate = useNavigate();
const theme = useTheme();
const { patch } = usePatch<any, IMonitor>();
console.log(monitors);
const handlePageChange = (
_e: React.MouseEvent<HTMLButtonElement> | null,
newPage: number
@@ -124,7 +123,11 @@ export const DockerMonitorsTable = ({
},
{
id: "actions",
content: <Typography component="div">{t("common.table.headers.actions")}</Typography>,
content: (
<Typography component="div">
{t("common.table.headers.actions")}
</Typography>
),
render: (row) => <ActionsMenu items={getActions(row)} />,
},
];