fix: filter deleted fields from routing form insights headers (#24830)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Eunjae Lee
2025-11-03 12:57:37 +00:00
committed by GitHub
co-authored by Devin AI
parent c154bb31b7
commit 2484b6fad2
@@ -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<string>();
const headers = (fields || [])
.filter((f) => !f.deleted)
.map((f) => {
return {
id: f.id,