SVGSidebar: Change pop to shift for right order

This commit is contained in:
Siklos 2022-08-01 00:37:45 +02:00
parent ea156060c4
commit 3cd86d1bff

View file

@ -17,7 +17,7 @@ export class SVGSidebar extends React.Component<ISVGSidebarProps> {
const queue = [root]; const queue = [root];
const visited = new Set([root]); const visited = new Set([root]);
while (queue.length > 0) { while (queue.length > 0) {
const container = queue.pop() as Container; const container = queue.shift() as Container;
handleContainer(container); handleContainer(container);