Skip to content

Commit 2a99418

Browse files
committed
fix: crash on array of arrays handling
1 parent da8fd80 commit 2a99418

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/Common/RJSF/common/FieldRow.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,8 @@ export const FieldRowWithLabel = ({
3737
>
3838
{showLabel && (
3939
<label className="cn-7 fs-13 lh-32 fw-4 flexbox mb-0" htmlFor={id}>
40-
{/* The check is added here intentionally for proper layout for array type field */}
41-
{label !== DO_NOT_SHOW_LABEL && (
42-
<>
43-
<span className="dc__ellipsis-right">{label || DEFAULT_FIELD_TITLE}</span>
44-
{required && <span className="cr-5">&nbsp;*</span>}
45-
</>
46-
)}
40+
<span className="dc__ellipsis-right">{label || DEFAULT_FIELD_TITLE}</span>
41+
{required && <span className="cr-5">&nbsp;*</span>}
4742
</label>
4843
)}
4944
{children}

src/Common/RJSF/templates/ArrayFieldTemplate.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export const ArrayFieldTemplate = ({
6565
...itemProps.children,
6666
props: {
6767
...itemProps.children.props,
68-
name: index === 0 ? label : DO_NOT_SHOW_LABEL,
6968
},
7069
}
7170
return (

0 commit comments

Comments
 (0)