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