fix: parent candidacy

This commit is contained in:
cha0s 2020-06-28 08:36:41 -05:00
parent 75368d267e
commit aed7562acb

View File

@ -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>
);