allow all rule groups to be empty (#1710)

This commit is contained in:
jeffvli
2026-02-13 20:26:58 -08:00
parent 77fef33cbf
commit e497734c07
2 changed files with 3 additions and 6 deletions
@@ -196,7 +196,7 @@ export const QueryBuilder = ({
filters={filters}
groupIndex={groupIndex || []}
level={level}
noRemove={data?.rules?.length === 1}
noRemove={false}
onChangeField={onChangeField}
onChangeOperator={onChangeOperator}
onChangeValue={onChangeValue}
@@ -172,11 +172,8 @@ function GlobalExpandedPanel() {
if (!globalExpanded) return null;
return (
<ExpandedListContainer>
<ExpandedListItem
item={globalExpanded.item}
itemType={globalExpanded.itemType}
/>
<ExpandedListContainer>
<ExpandedListItem item={globalExpanded.item} itemType={globalExpanded.itemType} />
</ExpandedListContainer>
);
}