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