jcadafalch / TaskManager

MIT License
0 stars 0 forks source link

B.A Implement CrearTarea.razor #4

Closed jcadafalch closed 2 years ago

jcadafalch commented 2 years ago

En fer clic en el boto de crear tarea, salta el següent error:

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Value cannot be null. (Parameter 'client')
System.ArgumentNullException: Value cannot be null. (Parameter 'client')
   at System.Net.Http.Json.HttpClientJsonExtensions.PostAsJsonAsync[CreateTareaRequestDTO](HttpClient client, String requestUri, CreateTareaRequestDTO value, JsonSerializerOptions options, CancellationToken cancellationToken)
   at GestorTareas.Client.Pages.Tarea.CrearTarea.CreateNewTareaAsync() in C:\Users\j.cadafalch\Documents\GitHub\GestorTareas\GestorTareas\Client\Pages\Tarea\CrearTarea.razor.cs:line 31
   at GestorTareas.Client.Pages.Tarea.CrearTarea.<BuildRenderTree>b__5_12() in C:\Users\j.cadafalch\Documents\GitHub\GestorTareas\GestorTareas\Client\Pages\Tarea\CrearTarea.razor:line 18
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at MudBlazor.MudBaseButton.OnClickHandler(MouseEventArgs ev)
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
jcadafalch commented 2 years ago

Error existent solucionat, feature implementada.