Fix exception unmounting by moklick · Pull Request #5692 · xyflow/xyflow
Caution
Review failed
The pull request is closed.
Walkthrough
This pull request adds a changeset for a patch release and modifies the MiniMapNodes component to handle missing nodes safely. The changes replace a forced node unwrap with explicit undefined handling that returns default geometry when a node cannot be found. The node extraction logic is updated to use nodeLookup.get(id) instead of direct internals access, and dimensions are derived from userNode. The component now returns the public-facing userNode instead of internal references, with guards added to prevent errors when nodes are absent.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.