From 115fcc67f6f4d2ef19875b5e33976b798faea25f Mon Sep 17 00:00:00 2001 From: mannilakash Date: Tue, 17 Mar 2026 15:14:44 -0400 Subject: [PATCH] fix: fetching game/grpc/websocket as well for statusPage --- client/src/Pages/StatusPage/Create/index.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/client/src/Pages/StatusPage/Create/index.tsx b/client/src/Pages/StatusPage/Create/index.tsx index ea4452dae..f1ecc674c 100644 --- a/client/src/Pages/StatusPage/Create/index.tsx +++ b/client/src/Pages/StatusPage/Create/index.tsx @@ -54,9 +54,15 @@ const CreateStatusPage = () => { isCreate ? null : `/status-page/${url}?type=uptime&type=infrastructure` ); - const { data: monitorsResponse } = useGet( - "/monitors/team?type=http&type=ping&type=port&type=docker&type=hardware" - ); + const monitorsUrl = useMemo(() => { + const params = new URLSearchParams(); + ["http", "ping", "port", "docker", "game", "grpc", "websocket", "hardware"].forEach( + (type) => params.append("type", type) + ); + return `/monitors/team?${params.toString()}`; + }, []); + + const { data: monitorsResponse } = useGet(monitorsUrl); const monitors = monitorsResponse ?? []; const { post, loading: isSubmittingPost } = usePost();