Fix reversed list
This commit is contained in:
parent
05622c3a64
commit
0dc078493a
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ export class ElementsSidebar extends React.Component<IElementsSidebarProps> {
|
||||||
|
|
||||||
handleContainer(container);
|
handleContainer(container);
|
||||||
|
|
||||||
container.props.children.forEach((child) => {
|
// if this reverse() gets costly, replace it by a simple for
|
||||||
|
container.props.children.reverse().forEach((child) => {
|
||||||
if (visited.has(child)) {
|
if (visited.has(child)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue