Skip to content

Commit f346474

Browse files
committed
write n/a for no udn
1 parent f72d9a3 commit f346474

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

web/src/components/drawer/record/record-field.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,16 @@ export const RecordField: React.FC<RecordFieldProps> = ({
218218
const nthContainer = (children: (JSX.Element | undefined)[], asChild = true, childIcon = true, forcedSize?: Size) => {
219219
return (
220220
<Flex className={`record-field-flex-container ${forcedSize || size}`} flex={{ default: 'flex_1' }}>
221-
{children.map((c, i) => {
222-
const child = c ? c : emptyText();
223-
if (i > 0 && asChild && childIcon) {
224-
const arrow = <span className="child-arrow">{'↪'}</span>;
225-
return sideBySideContainer(arrow, child, 'flexNone', 'flex_1', 'nowrap');
226-
}
227-
return child;
228-
})}
221+
{children.length > 0
222+
? children.map((c, i) => {
223+
const child = c ? c : emptyText();
224+
if (i > 0 && asChild && childIcon) {
225+
const arrow = <span className="child-arrow">{'↪'}</span>;
226+
return sideBySideContainer(arrow, child, 'flexNone', 'flex_1', 'nowrap');
227+
}
228+
return child;
229+
})
230+
: emptyText()}
229231
</Flex>
230232
);
231233
};

0 commit comments

Comments
 (0)