fix: parent candidacy
This commit is contained in:
parent
75368d267e
commit
aed7562acb
|
@ -67,6 +67,7 @@ const Sidebar = () => {
|
|||
return (
|
||||
<div className="sidebar">
|
||||
<SortableTree
|
||||
canNodeHaveChildren={(node) => !node.uri}
|
||||
generateNodeProps={({node}) => ({
|
||||
onClick: () => {
|
||||
if (node.uri) {
|
||||
|
@ -86,9 +87,9 @@ const Sidebar = () => {
|
|||
}
|
||||
},
|
||||
})}
|
||||
treeData={treeData}
|
||||
onChange={setTreeData}
|
||||
theme={FileExplorerTheme}
|
||||
treeData={treeData}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user