Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(store): don't ignore patterns in pattern root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
faselbaum committed Mar 12, 2018
1 parent c67d58f commit d9ace1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/styleguide/folder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ export class PatternFolder {
* @return The child folders of this folder.
*/
public getDescendants(): PatternFolder[] {
let result: PatternFolder[] = [];
let result: PatternFolder[] = [this];
for (const child of this.children.values()) {
result.push(child);
result = result.concat(child.getDescendants());
}

Expand Down

0 comments on commit d9ace1a

Please sign in to comment.