Skip to content

Commit e1e03de

Browse files
refactor: remove redundant BookmarkAddress cast in navigateTo
1 parent aa96ff1 commit e1e03de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/super-editor/src/editors/v1/core/presentation-editor/PresentationEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5925,7 +5925,7 @@ export class PresentationEditor extends EventEmitter {
59255925
if (!target || target.kind !== 'entity') return false;
59265926

59275927
if (target.entityType === 'bookmark') {
5928-
return this.#navigateToBookmarkTarget(target as BookmarkAddress);
5928+
return this.#navigateToBookmarkTarget(target);
59295929
}
59305930

59315931
// Comments and tracked changes are only supported in the document body.

0 commit comments

Comments
 (0)