diff --git a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts index 120de66959..2d6b15a26c 100644 --- a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts @@ -899,10 +899,10 @@ const flattenTree = (files, expandPath: string[]) =>{ flatTree.push(file) if (file.isDirectory && file.child && expandPath && expandPath.find((path) => path === file.path || path.startsWith(file.path + '/')) ) { - const sorted = fileKeySort(file.child) - Object.keys(sorted).map((key) => { - mapChild(sorted[key]) - }) + const sorted = fileKeySort(file.child) + Object.keys(sorted).map((key) => { + mapChild(sorted[key]) + }) } } if(files){