Update AuthorRole and SelectedAuthor component to require Author.

This commit is contained in:
2025-05-07 19:05:22 +03:00
parent d82e4c20fc
commit 59cc87cd97
3 changed files with 24 additions and 6 deletions
@@ -236,7 +236,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do
</td>
<td class="px-3 w-48">
<label for={author_roles_form[:author_id].id} class="hidden">Type</label>
<.input field={author_roles_form[:author_id]} type="hidden" />
<.input field={author_roles_form[:author_id]} type="hidden" show_errors?={false} />
<.selected_author
author_form={author_roles_form[:author_id]}
notify_component={@notify_component}