Skip to content

Commit f117bba

Browse files
RoboErikGcpcallen
andauthored
Simplify check for existence of isCopyable
Co-authored-by: Christopher Allen <[email protected]>
1 parent a888362 commit f117bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/shortcut_items.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ let copyCoords: Coordinate | null = null;
108108
function isCopyable(focused: IFocusableNode): boolean {
109109
if (!isICopyable(focused) || !isIDeletable(focused) || !isDraggable(focused))
110110
return false;
111-
if (focused.isCopyable !== undefined) {
111+
if (focused.isCopyable) {
112112
return focused.isCopyable();
113113
} else if (
114114
focused instanceof BlockSvg ||

0 commit comments

Comments
 (0)