Skip to content

Commit eab1886

Browse files
committed
Size should be null for value nodes
1 parent 8bfa2a7 commit eab1886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CollectionNode.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export const CollectionNode: React.FC<CollectionNodeProps> = (props) => {
294294
path: [...path, key],
295295
level: path.length + 1,
296296
index,
297-
size: isCollection(value) ? Object.keys(value as object).length : 1,
297+
size: isCollection(value) ? Object.keys(value as object).length : null,
298298
parentData: data,
299299
fullData: nodeData.fullData,
300300
}

0 commit comments

Comments
 (0)