From e91f46c2cd5fe63b3850d96fc7a4a431123a1c10 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sun, 20 Apr 2025 18:18:24 +0300 Subject: [PATCH] Fix the nested form for AuthorRole to persist the author. --- .../live/book_live/form_component.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decentralised_book_index_web/live/book_live/form_component.ex b/lib/decentralised_book_index_web/live/book_live/form_component.ex index 9730997..594082f 100644 --- a/lib/decentralised_book_index_web/live/book_live/form_component.ex +++ b/lib/decentralised_book_index_web/live/book_live/form_component.ex @@ -227,7 +227,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do - <.input field={author_roles_form[:author_id]} /> + <.input field={author_roles_form[:author_id]} type="hidden" /> <.selected_author author_form={author_roles_form[:author_id]} notify_component={@notify_component}