Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

refactor(SchemaForm): update key in Form.Group to include title and key

robin69b7e4b46de3
diff --git a/ui/src/components/SchemaForm/index.tsx b/ui/src/components/SchemaForm/index.tsx
index 1fe8c8c1..ba4acadd 100644
--- a/ui/src/components/SchemaForm/index.tsx
+++ b/ui/src/components/SchemaForm/index.tsx
@@ -282,7 +282,7 @@ const SchemaForm: ForwardRefRenderFunction<FormRef, FormProps> = (
return (
<Form.Group
- key={title}
+ key={`${title}-${key}`}
controlId={key}
className={classnames(
groupClassName,