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

Commit

Permalink
fix(store): use children directly instead of getChildren
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Küchler committed Dec 13, 2017
1 parent daa231f commit dc58f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/page/page_element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class PageElement {
if (!this.parent) {
throw new Error('This element has no parent');
}
return this.parent.getChildren().indexOf(this);
return this.parent.children.indexOf(this);
}

public getParent(): PageElement | undefined {
Expand Down

0 comments on commit dc58f25

Please sign in to comment.