ping type globalping checks

This commit is contained in:
Alex Holliday committed 2026-03-06 10:37:29 -08:00
1 parent 188445c57a
commit 124a8c0b07
9 files changed
+80 -40

No files matched your search

+10 -2
View File
@@ -122,7 +122,11 @@ const UptimeDetailsPage = () => {
);
const geoChecksUrl = useMemo(() => {
if (!monitorId || monitor?.type !== "http" || !monitor?.geoCheckEnabled) {
if (
!monitorId ||
(monitor?.type !== "http" && monitor?.type !== "ping") ||
!monitor?.geoCheckEnabled
) {
return null;
}
const params = new URLSearchParams();
@@ -141,7 +145,11 @@ const UptimeDetailsPage = () => {
// Fetch paginated geo checks for the table
const geoChecksTableUrl = useMemo(() => {
if (!monitorId || monitor?.type !== "http" || !monitor?.geoCheckEnabled) {
if (
!monitorId ||
(monitor?.type !== "http" && monitor?.type !== "ping") ||
!monitor?.geoCheckEnabled
) {
return null;
}
const params = new URLSearchParams();