Skip to content

Commit

Permalink
fix: send set tenant to parent liveview
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 31, 2023
1 parent defd653 commit 94183da
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/ash_admin/components/top_nav/tenant_form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ defmodule AshAdmin.Components.TopNav.TenantForm do
def render(assigns) do
~H"""
<div id={@id} class="relative text-white" phx-hook="Tenant" phx-target={@myself}>
<.form
:if={@editing_tenant}
for={to_form(%{}, as: :tenant)}
phx-submit={@set_tenant}
phx-target={@myself}
>
<.form :if={@editing_tenant} for={to_form(%{}, as: :tenant)} phx-submit={@set_tenant}>
<input
type="text"
name="tenant"
Expand Down

0 comments on commit 94183da

Please sign in to comment.