Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getSelectedFiles () {
const nodes = {}
if (!this.refs.tree) {
return nodes
}
walk({
treeData: this.refs.tree.state.treeData,
getNodeKey: ({ treeIndex }) => treeIndex,
ignoreCollapsed: true,
callback: rowInfoIter => {
if (rowInfoIter.node.active) {
nodes[rowInfoIter.treeIndex] = rowInfoIter.node
}
}
});
return nodes
}