fix: show globe icon based on globalpingEnabled instead of locations array

The globe icon in the monitor list was checking row.locations.length,
but locations are no longer stored per-monitor. Updated to check
row.globalpingEnabled and show a "Global monitoring enabled" tooltip.
This commit is contained in:
gorkem-bwl committed 2026-02-19 12:14:52 -05:00
1 parent 4ca24c794e
commit bfdf28a2cc
2 files changed
+4 -3

No files matched your search

@@ -175,8 +175,8 @@ export const MonitorTable = ({
gap={theme.spacing(2)}
>
{row?.name}
{row.locations && row.locations.length > 0 && (
<Tooltip title={`${row.locations.length} ${t("pages.uptime.table.headers.locations").toLowerCase()}: ${row.locations.join(", ")}`}>
{row.globalpingEnabled && (
<Tooltip title={t("pages.uptime.table.headers.globalpingEnabled")}>
<Globe size={14} />
</Tooltip>
)}