🐛 Start the rename group dialog from the group's current name

Renaming an assets group opened the dialog with an empty name: the
initial form data set `:asset-name`, while the form field is `:name`.

Found by the components Qase run (PENPOT-1285).

Checked in the browser: Rename group shows the current name.

AI-assisted-by: claude-opus-5-5
This commit is contained in:
alonso.torres 2026-11-19 10:00:40 +01:00
parent 047f8ae4e1
commit 604998a716

View File

@ -136,7 +136,7 @@
[{:keys [path last-path accept] :as ctx
:or {path "" last-path ""}}]
(let [initial (mf/with-memo [last-path]
{:asset-name last-path})
{:name last-path})
form (fm/use-form :schema schema:group-form
:initial initial)