mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
allow all rule groups to be empty (#1710)
This commit is contained in:
@@ -196,7 +196,7 @@ export const QueryBuilder = ({
|
|||||||
filters={filters}
|
filters={filters}
|
||||||
groupIndex={groupIndex || []}
|
groupIndex={groupIndex || []}
|
||||||
level={level}
|
level={level}
|
||||||
noRemove={data?.rules?.length === 1}
|
noRemove={false}
|
||||||
onChangeField={onChangeField}
|
onChangeField={onChangeField}
|
||||||
onChangeOperator={onChangeOperator}
|
onChangeOperator={onChangeOperator}
|
||||||
onChangeValue={onChangeValue}
|
onChangeValue={onChangeValue}
|
||||||
|
|||||||
@@ -172,11 +172,8 @@ function GlobalExpandedPanel() {
|
|||||||
if (!globalExpanded) return null;
|
if (!globalExpanded) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ExpandedListContainer>
|
<ExpandedListContainer>
|
||||||
<ExpandedListItem
|
<ExpandedListItem item={globalExpanded.item} itemType={globalExpanded.itemType} />
|
||||||
item={globalExpanded.item}
|
|
||||||
itemType={globalExpanded.itemType}
|
|
||||||
/>
|
|
||||||
</ExpandedListContainer>
|
</ExpandedListContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user