diff --git a/client/src/components/dynamic-groups/condition-builder.tsx b/client/src/components/dynamic-groups/condition-builder.tsx index 93b51c4..be9b9be 100644 --- a/client/src/components/dynamic-groups/condition-builder.tsx +++ b/client/src/components/dynamic-groups/condition-builder.tsx @@ -244,101 +244,7 @@ const ConditionBuilder: React.FC = ({ ); }; - // Render a condition group - const renderConditionGroup = (condition: Condition, index: number, level = 0) => { - const isExpanded = condition.id ? expandedGroups.has(condition.id) : false; - const childConditions = condition.id ? getConditionsForParent(condition.id) : []; - - return ( -
0 ? `${level * 20}px` : '0' }} - > -
-
- - - - Condition Group ({condition.logicalOperator}) - -
- -
- - - - - - - -
-
- - {isExpanded && ( -
- {childConditions.length === 0 ? ( -
- No conditions in this group. Add one using the buttons above. -
- ) : ( - childConditions.map((child, childIndex) => { - const originalIndex = conditions.findIndex(c => c === child); - return child.isGroup - ? renderConditionGroup(child, originalIndex, level + 1) - : ; - }) - )} -
- )} -
- ); - }; + // Removed unused renderConditionGroup function // Sortable Item wrapper component const SortableItem = ({ @@ -466,9 +372,12 @@ const ConditionBuilder: React.FC = ({ ) : ( childConditions.map((child, childIndex) => { const originalIndex = conditions.findIndex(c => c === child); - return child.isGroup - ? - : ; + return ; }) ); })()