Skip to content

Commit 0c6a670

Browse files
committed
fix:fix bug
1 parent 8e081c6 commit 0c6a670

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/frontend/platform/src/pages/Dashboard/components/config/FilterConditionDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export function FilterConditionDialog({
482482
const newConditions = prev.conditions.filter(c => c.id !== id)
483483
return {
484484
...prev,
485-
conditions: [createEmptyCondition()]
485+
conditions: newConditions.length > 0 ? newConditions : [createEmptyCondition()]
486486
}
487487
})
488488
}
@@ -661,7 +661,7 @@ export function FilterConditionDialog({
661661
<SelectTrigger className="w-[120px] h-8">
662662
<SelectValue placeholder={t('filterConditionDialog.placeholders.selectField')} />
663663
</SelectTrigger>
664-
<SelectContent className=" overflow-y-auto w-[160px]">
664+
<SelectContent className=" overflow-y-auto w-[160px] max-h-[200px]">
665665
{filteredFields.length > 0 ? (
666666
filteredFields.map(f => {
667667
const displayText = getFieldDisplayName(f.fieldCode) || "暂无";

0 commit comments

Comments
 (0)