Skip to content

Commit bd9051f

Browse files
committed
refactor: 增加过滤条件防止空记录
1 parent 948a3f5 commit bd9051f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor.Server/Components/Pages/CacheList.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private void UpdateCacheList()
6060
entry = val;
6161
}
6262
return entry;
63-
})];
63+
}).Where(i => i != null)];
6464
}
6565

6666
private static string GetKey(object data) => data is ICacheEntry entry ? entry.Key.ToString()! : "-";

0 commit comments

Comments
 (0)