Openstatus www.openstatus.dev

fix: select all regions (#1447)

authored by

Maximilian Kaske and committed by
GitHub
d23d97c1 e3834a0d

+8 -2
+8 -2
apps/dashboard/src/components/forms/monitor/form-scheduling-regions.tsx
··· 43 43 TooltipTrigger, 44 44 } from "@/components/ui/tooltip"; 45 45 import { useTRPC } from "@/lib/trpc/client"; 46 - import { formatRegionCode, groupByContinent } from "@openstatus/utils"; 46 + import { 47 + formatRegionCode, 48 + groupByContinent, 49 + regionDict, 50 + } from "@openstatus/utils"; 47 51 import { useQuery } from "@tanstack/react-query"; 48 52 import { isTRPCClientError } from "@trpc/client"; 49 53 import { CircleX, Info } from "lucide-react"; ··· 107 111 108 112 if (!workspace) return null; 109 113 110 - const allowedRegions = workspace.limits.regions; 114 + const allowedRegions = workspace.limits.regions.filter( 115 + (r) => !regionDict[r as keyof typeof regionDict].deprecated, 116 + ); 111 117 const maxRegions = workspace.limits["max-regions"]; 112 118 const periodicity = workspace.limits.periodicity; 113 119