Skip to content

Commit fd850db

Browse files
bmartelcursoragent
andauthored
fix: FIT-1350: Playground image segmentation tags (#9312)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent e67e8f1 commit fd850db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/libs/editor/src/mixins/Tool.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const ToolMixin = types
5656
},
5757

5858
get getSelectedShape() {
59-
return self.control.annotation.highlightedNode;
59+
return self.control?.annotation?.highlightedNode;
6060
},
6161

6262
get extraShortcuts() {
@@ -106,7 +106,7 @@ const ToolMixin = types
106106
*/
107107
shouldSkipInteractions(e) {
108108
const isCtrlPressed = e.evt && (e.evt.metaKey || e.evt.ctrlKey);
109-
const hasSelection = self.control.annotation.hasSelection;
109+
const hasSelection = self.control?.annotation?.hasSelection;
110110

111111
return !!isCtrlPressed && !hasSelection;
112112
},

0 commit comments

Comments
 (0)