changed SearchService

This commit is contained in:
AndriiSyrotenko 2023-11-23 21:20:24 +00:00
parent bfb63ecffd
commit 4b37648a78
3 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ public partial class Chat : ComponentBase
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {
try{ try{
var input = _searchServise.firstMassage; var input = _searchServise.FirstMessage;
if (input!=null){ if (input!=null){
@ -65,7 +65,7 @@ public partial class Chat : ComponentBase
}; };
var response = await _apiClient.QueryAsync(request); var response = await _apiClient.QueryAsync(request);
_searchServise.SetFirstMassage(null); _searchServise.SetFirstMessage(null);
isLoading = false; isLoading = false;
await UpdateSideMenu(wishlistId); await UpdateSideMenu(wishlistId);
StateHasChanged(); StateHasChanged();

View File

@ -62,7 +62,7 @@ namespace ShoppingAssistantWebClient.Web.Pages
string wishlistId = chatId; string wishlistId = chatId;
_searchServise.SetFirstMassage(inputValue); _searchServise.SetFirstMessage(inputValue);
await UpdateSideMenu(wishlistId); await UpdateSideMenu(wishlistId);
var url = $"/chat/{chatId}"; var url = $"/chat/{chatId}";

View File

@ -11,7 +11,7 @@ public class SearchService
Products = products; Products = products;
} }
public void SetFirstMassage(string message) { public void SetFirstMessage(string message) {
FirstMessage = message; FirstMessage = message;
} }
} }