Skip to content

Commit b262f5b

Browse files
authored
fix: page components form reorder (openstatusHQ#1789)
1 parent a4437f9 commit b262f5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/dashboard/src/components/forms/components/form-components.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ function ComponentRow({
715715
</SortableItemHandle>
716716
{fieldNamePrefix ? (
717717
<FormField
718+
key={`${component.id}-name-${fieldNamePrefix}`}
718719
control={form.control}
719720
name={`${fieldNamePrefix}.name` as "components.0.name"}
720721
render={({ field }) => (
@@ -740,6 +741,7 @@ function ComponentRow({
740741
<div className="flex flex-row items-center gap-1 self-center">
741742
{fieldNamePrefix ? (
742743
<FormField
744+
key={`${component.id}-description-${fieldNamePrefix}`}
743745
control={form.control}
744746
name={
745747
`${fieldNamePrefix}.description` as "components.0.description"

0 commit comments

Comments
 (0)