mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
When parsing a list item for a checkbox, the code did not validate that the first child token was a text token. This could lead to a runtime error when pasting content that resulted in a different token structure. This change adds a check to ensure the first child is a text token before attempting to access its content, preventing the crash.