You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when creating or updating a record, the fluentvalidation errors are not shown, I made a modification to the ApiHelper both methods, to obtain those errors and show them, they consider that the change is correct
catch (ApiException ex)
{
if (ex.Result.Errors is not null)
{
customValidation?.DisplayErrors(ex.Result.Errors);
foreach (var item in ex.Result.Errors)
{
snackbar.Add(item.Value.FirstOrDefault(), Severity.Error);
}
}
else
{
snackbar.Add("Something went wrong!", Severity.Error);
}
}
thanks I wait for the answer
The text was updated successfully, but these errors were encountered:
Hello, when creating or updating a record, the fluentvalidation errors are not shown, I made a modification to the ApiHelper both methods, to obtain those errors and show them, they consider that the change is correct
catch (ApiException ex)
{
if (ex.Result.Errors is not null)
{
customValidation?.DisplayErrors(ex.Result.Errors);
foreach (var item in ex.Result.Errors)
{
snackbar.Add(item.Value.FirstOrDefault(), Severity.Error);
}
}
else
{
snackbar.Add("Something went wrong!", Severity.Error);
}
}
thanks I wait for the answer
The text was updated successfully, but these errors were encountered: