Moved static GetDepth to getDepth class method
This commit is contained in:
parent
8792c8bee5
commit
be00496581
2 changed files with 13 additions and 13 deletions
|
@ -29,7 +29,7 @@ export class ElementsSidebar extends React.Component<IElementsSidebarProps> {
|
|||
|
||||
const containerRows: React.ReactNode[] = [];
|
||||
this.iterateChilds((container: Container) => {
|
||||
const depth: number = Container.getDepth(container);
|
||||
const depth: number = container.getDepth();
|
||||
const key = container.props.properties.id.toString();
|
||||
const text = '|\t'.repeat(depth) + key;
|
||||
const selectedClass: string = this.props.SelectedContainer !== null &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue