Fix uptrace error e.dataset is undefined (#10251)

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2025-11-25 12:08:50 +07:00
committed by GitHub
parent 4b1075947a
commit ccec1ae5d6
@@ -636,7 +636,7 @@ function resolveCursorPositionFromCoords (view: EditorView, coords: { left: numb
function scanMarker (target: HTMLElement | null, field: string): [boolean, HTMLElement | null] {
while (target != null) {
if (target.dataset[field] === 'true') {
if (target.dataset?.[field] === 'true') {
return [true, target]
}
target = target.parentElement