diff --git a/BlazorApp/BlazorApp/Components/InventoryComp.razor.cs b/BlazorApp/BlazorApp/Components/InventoryComp.razor.cs index 7f792cd..6ca14eb 100644 --- a/BlazorApp/BlazorApp/Components/InventoryComp.razor.cs +++ b/BlazorApp/BlazorApp/Components/InventoryComp.razor.cs @@ -24,8 +24,6 @@ namespace BlazorApp.Components public List InventoryItems { get; set; } - public List InvItems { get; set; } - private int totalItem; public InventoryComp() @@ -37,7 +35,7 @@ namespace BlazorApp.Components } } - private async Task OnReadData(DataGridReadDataEventArgs e) + private async Task OnReadData(DataGridReadDataEventArgs e) { if (e.CancellationToken.IsCancellationRequested) { @@ -48,11 +46,6 @@ namespace BlazorApp.Components { Items = await DataService.List(e.Page, e.PageSize); totalItem = await DataService.Count(); - foreach (Item i in Items){ - InventoryItem newI = new InventoryItem(); - newI.Item = i; - InvItems.Append(newI); - } } }