mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-27 08:59:45 -05:00
0bcd85d658
- 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.