Moved static GetDepth to getDepth class method

This commit is contained in:
Siklos 2022-08-02 23:36:31 +02:00
parent 8792c8bee5
commit be00496581
2 changed files with 13 additions and 13 deletions

View file

@ -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 &&