From d872382f196ed5ae4e28f297e7ded7b0d8d6cee3 Mon Sep 17 00:00:00 2001 From: Loretta Date: Thu, 29 Aug 2024 18:01:30 +0200 Subject: [PATCH] ComboboxItemSelector.razor improvements, fixes, etc... --- AyCode.Blazor.Components/Services/AcSignalRClientBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AyCode.Blazor.Components/Services/AcSignalRClientBase.cs b/AyCode.Blazor.Components/Services/AcSignalRClientBase.cs index cc52b99..705f646 100644 --- a/AyCode.Blazor.Components/Services/AcSignalRClientBase.cs +++ b/AyCode.Blazor.Components/Services/AcSignalRClientBase.cs @@ -120,15 +120,15 @@ namespace AyCode.Blazor.Components.Services { return GetAllAsync>(messageTag, response => { + intoList.Clear(); + if (response.Status != SignalResponseStatus.Success || response.ResponseData == null) { Logger.Error($"GetAllIntoAsync<{typeof(T).Name}>(); status: {response.Status}; dataCount: {response.ResponseData?.Count}; {ConstHelper.NameByValue(TagsName, messageTag)};"); return Task.CompletedTask; } - intoList.Clear(); intoList.AddRange(response.ResponseData); - return Task.CompletedTask; }, contextParams); }