From f117bbad22b669ad80208d45d7552ed2017bf3dd Mon Sep 17 00:00:00 2001 From: RoboErikG Date: Mon, 16 Jun 2025 12:35:10 -0700 Subject: [PATCH] Simplify check for existence of isCopyable Co-authored-by: Christopher Allen --- core/shortcut_items.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/shortcut_items.ts b/core/shortcut_items.ts index dca2d7366..25295e417 100644 --- a/core/shortcut_items.ts +++ b/core/shortcut_items.ts @@ -108,7 +108,7 @@ let copyCoords: Coordinate | null = null; function isCopyable(focused: IFocusableNode): boolean { if (!isICopyable(focused) || !isIDeletable(focused) || !isDraggable(focused)) return false; - if (focused.isCopyable !== undefined) { + if (focused.isCopyable) { return focused.isCopyable(); } else if ( focused instanceof BlockSvg ||