diff --git a/packages/editor/src/lib/editor/Editor.ts b/packages/editor/src/lib/editor/Editor.ts index d565f9200..73ab85fdd 100644 --- a/packages/editor/src/lib/editor/Editor.ts +++ b/packages/editor/src/lib/editor/Editor.ts @@ -5056,14 +5056,18 @@ export class Editor extends EventEmitter { type: Binding['type'] ): Binding[] { const id = typeof shape === 'string' ? shape : shape.id - return this.getBindingsInvolvingShape(id, type).filter((b) => b.fromId === id) as Binding[] + return this.getBindingsInvolvingShape(id).filter( + (b) => b.fromId === id && b.type === type + ) as Binding[] } getBindingsToShape( shape: TLShape | TLShapeId, type: Binding['type'] ): Binding[] { const id = typeof shape === 'string' ? shape : shape.id - return this.getBindingsInvolvingShape(id, type).filter((b) => b.toId === id) as Binding[] + return this.getBindingsInvolvingShape(id).filter( + (b) => b.toId === id && b.type === type + ) as Binding[] } getBindingsInvolvingShape( shape: TLShape | TLShapeId,