We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d18fbd1 commit 371cd9cCopy full SHA for 371cd9c
lib/datatip-manager.ts
@@ -450,11 +450,7 @@ export class DataTipManager {
450
// OPTIMIZATION:
451
// if there is an overlay already on the same position, skip showing the datatip
452
const decorations = editor.getOverlayDecorations().filter((decoration) => {
453
- const decorationMarker = decoration.getMarker()
454
- if (decorationMarker.compare(highlightMarker) == 1) {
455
- return decoration
456
- }
457
- return null
+ return decoration.getMarker().compare(highlightMarker) === 1
458
})
459
if (decorations.length > 0) {
460
highlightMarker.destroy()
0 commit comments