From abcdb71bda68f759cbf2ec8b269d7ac016b06303 Mon Sep 17 00:00:00 2001 From: markosteger Date: Fri, 17 Mar 2023 14:47:43 +0100 Subject: [PATCH] Grid fix null exception on ItemsToShow --- src/Connected.Components/Components/Grid.razor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Connected.Components/Components/Grid.razor.cs b/src/Connected.Components/Components/Grid.razor.cs index 9ef8e61..e5ab426 100644 --- a/src/Connected.Components/Components/Grid.razor.cs +++ b/src/Connected.Components/Components/Grid.razor.cs @@ -9,9 +9,9 @@ public partial class Grid : ComponentBase { [Parameter] - public ObservableCollection? Items { get; set; } + public ObservableCollection? Items { get; set; } = new(); - private List? ItemsToShow { get; set; } + private List? ItemsToShow { get; set; } = new(); [Parameter] public RenderFragment? RowTemplate { get; set; }