flattentree
filip mertens 11 months ago
parent d57de28dd6
commit 04e17c7578
  1. 1
      libs/remix-ui/workspace/src/lib/reducers/workspace.ts

@ -895,6 +895,7 @@ const flattenTree = (files, expandPath: string[]) =>{
console.log('flattenTree', files, expandPath) console.log('flattenTree', files, expandPath)
const flatTree = {} const flatTree = {}
const mapChild = (file: FileType) => { const mapChild = (file: FileType) => {
if(!file.path) return
console.log('mapChild', file) console.log('mapChild', file)
flatTree[file.path] = file flatTree[file.path] = file
expandPath && expandPath.find((path) => path.startsWith(file.path)) && expandPath && expandPath.find((path) => path.startsWith(file.path)) &&

Loading…
Cancel
Save