CustomerForm A1
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m1s

This commit is contained in:
Leandro Hernan Rojas 2025-04-10 00:08:01 -03:00
parent 0f4176a5b2
commit 0da0d7c829

View File

@ -51,13 +51,13 @@
protected override async Task OnInitializedAsync()
{
// await LoadAccountTypes();
await LoadAccountTypes();
// if (CustomerId.HasValue)
// {
// // Cargar datos del cliente existente desde la API
// customer = await _httpClient.GetFromJsonAsync<ECustomer>($"/api/Customer/GetById/{CustomerId.Value}") ?? new();
// }
if (CustomerId.HasValue)
{
// Cargar datos del cliente existente desde la API
customer = await _httpClient.GetFromJsonAsync<ECustomer>($"/api/Customer/GetById/{CustomerId.Value}") ?? new();
}
}
private async Task LoadAccountTypes()