mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
allow all rule groups to be empty (#1710)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user