underscore unused argument
This commit is contained in:
parent
9a79e6eb54
commit
41ad5aa924
1 changed files with 6 additions and 2 deletions
|
@ -11,7 +11,7 @@ defmodule CMSWeb.StatusLive do
|
||||||
end
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_params(_params, uri, %{assigns: %{live_action: :new}} = socket) do
|
def handle_params(_params, _uri, %{assigns: %{live_action: :new}} = socket) do
|
||||||
status = %Status{}
|
status = %Status{}
|
||||||
|
|
||||||
changeset = Status.changeset(status)
|
changeset = Status.changeset(status)
|
||||||
|
@ -42,7 +42,11 @@ defmodule CMSWeb.StatusLive do
|
||||||
{:noreply, socket}
|
{:noreply, socket}
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_event("save_status", %{"status" => attrs}, %{assigns: %{status: status, live_action: :edit}} = socket) do
|
def handle_event(
|
||||||
|
"save_status",
|
||||||
|
%{"status" => attrs},
|
||||||
|
%{assigns: %{status: status, live_action: :edit}} = socket
|
||||||
|
) do
|
||||||
socket =
|
socket =
|
||||||
case Statuses.update_status(status, attrs) do
|
case Statuses.update_status(status, attrs) do
|
||||||
{:ok, status} ->
|
{:ok, status} ->
|
||||||
|
|
Loading…
Reference in a new issue