File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -287,18 +287,15 @@ class FlattenLayer extends CompressLayer {
287287 const rootNode = this . compressedRoot
288288 if ( rootNode ) {
289289 await traverse (
290- [ rootNode ] ,
290+ rootNode . contents ,
291291 async node => {
292- const overflowChar = node . path [ path . length + 1 ]
292+ const overflowChar = path [ node . path . length ]
293293 const match = path . startsWith ( node . path ) && ( overflowChar === '/' || ! overflowChar )
294- if ( node . path ) {
295- // rootNode.path === ''
296- if ( match ) {
297- if ( node . path === path ) {
298- // do not wait for expansion for the exact node as that will block "jumping from search"
299- this . $setExpand ( node , true )
300- } else await this . $setExpand ( node , true )
301- }
294+ if ( match ) {
295+ if ( node . path === path ) {
296+ // do not wait for expansion for the exact node as that will block "jumping from search"
297+ this . $setExpand ( node , true )
298+ } else await this . $setExpand ( node , true )
302299 }
303300 return match
304301 } ,
You can’t perform that action at this time.
0 commit comments