Skip to content

Commit 1e5b03f

Browse files
committed
Update DataComponentBase.cs
1 parent 283c73a commit 1e5b03f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LoreSoft.Blazor.Controls/Data/DataComponentBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ public async Task ApplyFilter(QueryRule? rule, bool refresh = true)
341341
if (rule.Id.HasValue())
342342
RootQuery.Filters.RemoveAll(f => f.Id == rule.Id);
343343

344-
RootQuery.Filters.Add(rule);
344+
if (LinqExpressionBuilder.IsValid(rule))
345+
RootQuery.Filters.Add(rule);
345346

346347
if (refresh)
347348
await RefreshAsync(true);

0 commit comments

Comments
 (0)