Skip to content

Open-source status page, incident response and uptime monitoring

fix: page components form reorder (#1789)

Maximilian Kaskeb262f5be050b
diff --git a/apps/dashboard/src/components/forms/components/form-components.tsx b/apps/dashboard/src/components/forms/components/form-components.tsx
index a146351d5..ec0b2f972 100644
--- a/apps/dashboard/src/components/forms/components/form-components.tsx
+++ b/apps/dashboard/src/components/forms/components/form-components.tsx
@@ -715,6 +715,7 @@ function ComponentRow({
</SortableItemHandle>
{fieldNamePrefix ? (
<FormField
+ key={`${component.id}-name-${fieldNamePrefix}`}
control={form.control}
name={`${fieldNamePrefix}.name` as "components.0.name"}
render={({ field }) => (
@@ -740,6 +741,7 @@ function ComponentRow({
<div className="flex flex-row items-center gap-1 self-center">
{fieldNamePrefix ? (
<FormField
+ key={`${component.id}-description-${fieldNamePrefix}`}
control={form.control}
name={
`${fieldNamePrefix}.description` as "components.0.description"