From 976ebd27e5d07ea00fcdc74fddc0a1d0aea0d312 Mon Sep 17 00:00:00 2001 From: "lilian.breton" Date: Sun, 18 Dec 2022 14:24:39 +0100 Subject: [PATCH] fix : bug sur la recherche --- .../Minecraft.Crafting.Api/Data/inventory.json | 12 ++++-------- myBlazorApp/myBlazorApp/Pages/Inventory.razor.cs | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/myBlazorApp/Minecraft.Crafting.Api/Data/inventory.json b/myBlazorApp/Minecraft.Crafting.Api/Data/inventory.json index 47655a9..559c0cc 100644 --- a/myBlazorApp/Minecraft.Crafting.Api/Data/inventory.json +++ b/myBlazorApp/Minecraft.Crafting.Api/Data/inventory.json @@ -4,16 +4,12 @@ "position": 1 }, { - "itemName": "lili", - "position": 2, - "number": 11, - "stackSize": 64 + "itemName": "null", + "position": 2 }, { - "itemName": "lulu", - "position": 3, - "number": 11, - "stackSize": 12 + "itemName": "null", + "position": 3 }, { "itemName": "null", diff --git a/myBlazorApp/myBlazorApp/Pages/Inventory.razor.cs b/myBlazorApp/myBlazorApp/Pages/Inventory.razor.cs index 63b6ae1..e170e54 100644 --- a/myBlazorApp/myBlazorApp/Pages/Inventory.razor.cs +++ b/myBlazorApp/myBlazorApp/Pages/Inventory.razor.cs @@ -97,7 +97,7 @@ namespace myBlazorApp.Pages if (SearchText.IsNullOrEmpty()) { choix = items; - totalItem = items.Count(); + totalItem = full.Count(); NavigationManager.NavigateTo("inventory", false); } else