Skip to content

Commit

Permalink
fix(@clayui/core): add a default value to nestedKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Castelain committed Jan 17, 2022
1 parent fcd7449 commit 075221d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/clay-core/src/tree-view/TreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function TreeView<T>({
expandedKeys,
expanderIcons,
items,
nestedKey,
nestedKey = 'children',
onExpandedChange,
onItemsChange,
onLoadMore,
Expand Down
1 change: 0 additions & 1 deletion packages/clay-core/stories/TreeView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ storiesOf('Components|ClayTreeView', module)
<TreeView
dragAndDrop
items={ITEMS_DRIVE}
nestedKey="children"
onRenameItem={(item) => {
return new Promise((resolve) => {
setTimeout(() => {
Expand Down

0 comments on commit 075221d

Please sign in to comment.