From a8bb4315ffe30c979f676c47ae82db1b19432d93 Mon Sep 17 00:00:00 2001 From: Ian Edwards Date: Mon, 6 May 2024 11:06:52 -0400 Subject: [PATCH] fix env group validator --- dashboard/src/main/home/env-dashboard/EnvDashboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/main/home/env-dashboard/EnvDashboard.tsx b/dashboard/src/main/home/env-dashboard/EnvDashboard.tsx index 29e69cbd9d..63aef85b22 100644 --- a/dashboard/src/main/home/env-dashboard/EnvDashboard.tsx +++ b/dashboard/src/main/home/env-dashboard/EnvDashboard.tsx @@ -64,7 +64,7 @@ const EnvDashboard: React.FC = (props) => { const data = await z .object({ - environment_groups: z.array(envGroupValidator), + environment_groups: z.array(envGroupValidator).default([]), }) .parseAsync(res.data); return data;