From ebe6b29de0f9e708fb36026dfd7aa9c5c649a9bc Mon Sep 17 00:00:00 2001 From: Lewis Carhart Date: Thu, 3 Apr 2025 20:21:22 -0400 Subject: [PATCH] fix: ensure policy content is always an array in PolicyPageEditor - Updated PolicyDetails page to handle cases where policy content may be null, ensuring that an empty array is passed to PolicyPageEditor instead of undefined. --- .../(app)/(dashboard)/[orgId]/policies/[policyId]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app/src/app/[locale]/(app)/(dashboard)/[orgId]/policies/[policyId]/page.tsx b/apps/app/src/app/[locale]/(app)/(dashboard)/[orgId]/policies/[policyId]/page.tsx index c4c71f16d7..960c961cbd 100644 --- a/apps/app/src/app/[locale]/(app)/(dashboard)/[orgId]/policies/[policyId]/page.tsx +++ b/apps/app/src/app/[locale]/(app)/(dashboard)/[orgId]/policies/[policyId]/page.tsx @@ -31,7 +31,7 @@ export default async function PolicyDetails({ );