From 2484b6fad25541fe2ce91f9442b020290f2d29d4 Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Mon, 3 Nov 2025 13:57:37 +0100 Subject: [PATCH] fix: filter deleted fields from routing form insights headers (#24830) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- packages/features/insights/server/routing-events.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/features/insights/server/routing-events.ts b/packages/features/insights/server/routing-events.ts index 5c17974cab..54abb52b2a 100644 --- a/packages/features/insights/server/routing-events.ts +++ b/packages/features/insights/server/routing-events.ts @@ -1,6 +1,4 @@ - import mapKeys from "lodash/mapKeys"; - import startCase from "lodash/startCase"; import { @@ -265,6 +263,7 @@ class RoutingEventsInsights { const fields = routingFormFieldsSchema.parse(routingForms.map((f) => f.fields).flat()); const ids = new Set(); const headers = (fields || []) + .filter((f) => !f.deleted) .map((f) => { return { id: f.id,