Files
formbricks-formbricks/apps/web/modules/ui
Victor Santos 0bcd85d658 refactor: enhance removeCondition logic and add comprehensive tests
- Updated the removeCondition function to return a boolean indicating success or failure.
- Implemented cleanup logic to remove empty condition groups after a condition is removed.
- Added tests to ensure correct behavior of removeCondition, including scenarios with nested groups and empty groups.
- Enhanced ConditionsEditor to disable the 'Create Group' button when only one condition exists, and ensure it is enabled when multiple conditions are present.
2025-09-01 08:58:11 -03:00
..