Skip to content

Commit d281b3b

Browse files
committed
fix: review
1 parent ab34905 commit d281b3b

File tree

3 files changed

+133
-133
lines changed

3 files changed

+133
-133
lines changed

src/StructuredYson/Cell.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function Cell(props: CellProps) {
7575
path,
7676
collapsed,
7777
isAfterAttributes,
78-
depth,
78+
size,
7979
},
8080
settings,
8181
yson,
@@ -118,8 +118,8 @@ export function Cell(props: CellProps) {
118118
isAfterAttributes={isAfterAttributes}
119119
/>
120120
{open && <OpenClose type={open} yson={yson} settings={settings} />}
121-
{props.showContainerSize && depth !== undefined && (
122-
<span className={'unipika'}>{i18n('context_items-count', {count: depth})}</span>
121+
{props.showContainerSize && size !== undefined && (
122+
<span className={'unipika'}>{i18n('context_items-count', {count: size})}</span>
123123
)}
124124
{value !== undefined && (
125125
<Value
@@ -131,7 +131,7 @@ export function Cell(props: CellProps) {
131131
showFullText={handleShowFullText}
132132
/>
133133
)}
134-
{collapsed && depth === undefined && <span className={'unipika'}>...</span>}
134+
{collapsed && size === undefined && <span className={'unipika'}>...</span>}
135135
{close && <OpenClose type={close} yson={yson} settings={settings} close />}
136136
{hasDelimiter && <SlaveText text={yson ? ';' : ','} />}
137137
</div>

0 commit comments

Comments
 (0)