Skip to content

Fix: empty mathlive lastSibling.type#1

Open
lamhungypl wants to merge 2 commits into
hotfix-0.98.6from
release/choco/sentry-empty-mathlive-type
Open

Fix: empty mathlive lastSibling.type#1
lamhungypl wants to merge 2 commits into
hotfix-0.98.6from
release/choco/sentry-empty-mathlive-type

Conversation

@lamhungypl
Copy link
Copy Markdown

No description provided.

Harley added 2 commits March 19, 2026 11:02
atom is captured before ModeEditor.insert() mutates the tree.
After insert, atom.parent may be undefined, making lastSibling
return undefined and crashing on .type access.

Optional chaining skips the content-move block safely when
the atom has been detached from the tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant