We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 699c37d commit c7d0575Copy full SHA for c7d0575
1 file changed
packages/lib/server/service/InsightsRoutingBaseService.ts
@@ -750,19 +750,8 @@ export class InsightsRoutingBaseService {
750
}
751
752
753
- // Extract form field filters (exclude the system filters we already processed)
754
- const alreadyHandledFilters = [
755
- "bookingStatusOrder",
756
- "bookingAssignmentReason",
757
- "bookingUid",
758
- "attendeeName",
759
- "attendeeEmail",
760
- "attendeePhone",
761
- "bookingUserId",
762
- "formId",
763
- ];
764
-
765
- const fieldFilters = columnFilters.filter((filter) => !alreadyHandledFilters.includes(filter.id));
+ const fieldIdSchema = z.string().uuid();
+ const fieldFilters = (columnFilters || []).filter((filter) => fieldIdSchema.safeParse(filter.id).success);
766
767
if (fieldFilters.length > 0) {
768
const fieldConditions = fieldFilters
0 commit comments