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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user