bug: plan+task query producing multiple results (#68)
This commit is contained in:
parent
e0ad13ee6c
commit
7aa0059c96
2 changed files with 4 additions and 2 deletions
|
@ -187,7 +187,7 @@ defmodule PlannerWeb.TasksLive do
|
|||
end
|
||||
|
||||
def handle_event("finish-task", %{"task-id" => task_id}, socket) do
|
||||
{_, task} = Tasks.finish_task_by_id!(task_id)
|
||||
{_, _} = Tasks.finish_task_by_id!(task_id)
|
||||
route = get_index_route(socket)
|
||||
{:noreply, push_patch(socket, to: route)}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue