Skip to content

Commit

Permalink
chore(sanity): remove ? since it will always be defined
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Bonamin <[email protected]>
  • Loading branch information
RitaDias and pedrobonamin authored Apr 29, 2024
1 parent c796d17 commit 7369458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sanity/src/core/comments/plugin/input/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function getSelectionBoundingRect(): DOMRect | null {
let range = null

if (selection && selection.rangeCount > 0) {
range = selection?.getRangeAt(0)
range = selection.getRangeAt(0)
}
const rect = range?.getBoundingClientRect()

Expand Down

0 comments on commit 7369458

Please sign in to comment.