mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Fix uptrace error e.dataset is undefined (#10251)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user