Skip to content

Commit

Permalink
Merge pull request #103 from bamlab/fix/double-registering-of-elements
Browse files Browse the repository at this point in the history
fix(core): fix double registering of elements
  • Loading branch information
pierpo authored Apr 11, 2024
2 parents 6871d70 + ac64a63 commit a8702f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lib/src/spatial-navigation/SpatialNavigator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default class SpatialNavigator {
potentialNodesToRegister.forEach((node) => {
this.registerNode(...node);
});
delete this.registerMap[id];
} else {
// If the parent is not registered yet, we queue the node for later registration.
if (!this.registerMap[parent]) {
Expand Down

0 comments on commit a8702f1

Please sign in to comment.