fix: last completed date

This commit is contained in:
Moritz Böhme 2025-04-07 10:13:00 +02:00
parent a5504e6e6e
commit 3c4f868f12
2 changed files with 14 additions and 6 deletions

View file

@ -65,7 +65,7 @@ defmodule PutzplanWeb.TaskLive.Index do
def mount(_params, _session, socket) do
{:ok,
socket
|> stream(:tasks, Ash.read!(Putzplan.Tasks.Task, actor: socket.assigns[:current_user]) |> Ash.load!(:due))
|> stream(:tasks, Ash.read!(Putzplan.Tasks.Task, load: [:due], actor: socket.assigns[:current_user]))
|> assign_new(:current_user, fn -> nil end)}
end