diff --git a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts index e71cd6a1cf..4bc2a5756b 100644 --- a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts @@ -895,6 +895,7 @@ const flattenTree = (files, expandPath: string[]) =>{ console.log('flattenTree', files, expandPath) const flatTree = {} const mapChild = (file: FileType) => { + if(!file.path) return console.log('mapChild', file) flatTree[file.path] = file expandPath && expandPath.find((path) => path.startsWith(file.path)) &&