fix: Properly tag events in SegmentFilterBuilder.tsx

This commit is contained in:
Dries Augustyns
2025-12-23 10:52:03 +01:00
parent 97ab0a2c2c
commit 8f725c7c84
2 changed files with 409 additions and 2 deletions
@@ -100,9 +100,11 @@ function useAvailableOptions() {
category: 'Email Activity' as const,
});
} else {
// Ensure event has the 'event.' prefix for backend compatibility
const eventValue = name.startsWith('event.') ? name : `event.${name}`;
eventOptions.push({
value: name,
label: name,
value: eventValue,
label: name.replace(/^event\./, ''), // Remove prefix from label for display
type: 'event' as const,
category: 'Events' as const,
});