Skip to content

Commit

Permalink
fix(List): V1Lease and V1MutatingWebhookConfiguration search (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic authored Sep 25, 2024
1 parent 7dbfac2 commit e10d88a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/KubeUI/ViewModels/ResourceListViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,8 @@ private void SelectedNamespaces_CollectionChanged(object? sender, NotifyCollecti
new ResourceListViewDefinitionColumn<V1Lease, string>()
{
Name = "Holder",
Display = x => x.Spec.HolderIdentity,
Field = x => x.Spec.HolderIdentity,
Display = x => x.Spec.HolderIdentity ?? "",
Field = x => x.Spec.HolderIdentity ?? "",
Width = nameof(DataGridLengthUnitType.SizeToCells)
},
AgeColumn(),
Expand All @@ -848,8 +848,8 @@ private void SelectedNamespaces_CollectionChanged(object? sender, NotifyCollecti
new ResourceListViewDefinitionColumn<V1MutatingWebhookConfiguration, int>()
{
Name = "Webhooks",
Display = x => x.Webhooks.Count.ToString(),
Field = x => x.Webhooks.Count,
Display = x => x.Webhooks?.Count.ToString() ?? "",
Field = x => x.Webhooks?.Count ?? 0,
Width = nameof(DataGridLengthUnitType.SizeToHeader)
},
AgeColumn(),
Expand Down

0 comments on commit e10d88a

Please sign in to comment.