SVGSidebar: Change pop to shift for right order
This commit is contained in:
parent
ea156060c4
commit
3cd86d1bff
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ export class SVGSidebar extends React.Component<ISVGSidebarProps> {
|
|||
const queue = [root];
|
||||
const visited = new Set([root]);
|
||||
while (queue.length > 0) {
|
||||
const container = queue.pop() as Container;
|
||||
const container = queue.shift() as Container;
|
||||
|
||||
handleContainer(container);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue