Skip to content

Commit

Permalink
[admin] fix organization label management
Browse files Browse the repository at this point in the history
  • Loading branch information
patatoid committed Sep 16, 2023
1 parent 6ad7cc4 commit 1f18a17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule BorutaAdminWeb.OrganizationController do
def create(conn, %{"organization" => organization_params}) do
create_params = %{
name: organization_params["name"],
label: organization_params["name"],
label: organization_params["label"],
}

with {:ok, organization} <- Admin.create_organization(create_params) do
Expand All @@ -55,7 +55,7 @@ defmodule BorutaAdminWeb.OrganizationController do
def update(conn, %{"id" => id, "organization" => organization_params}) do
update_params = %{
name: organization_params["name"],
label: organization_params["name"],
label: organization_params["label"],
}

with :ok <- ensure_open_for_edition(id, conn),
Expand Down

0 comments on commit 1f18a17

Please sign in to comment.