Update ArrowSession.ts
This commit is contained in:
parent
9255e7a4a5
commit
a793fadf74
1 changed files with 5 additions and 2 deletions
|
@ -43,8 +43,11 @@ export class ArrowSession extends BaseSession {
|
||||||
const oppositeHandleBindingId =
|
const oppositeHandleBindingId =
|
||||||
this.initialShape.handles[handleId === 'start' ? 'end' : 'start']?.bindingId
|
this.initialShape.handles[handleId === 'start' ? 'end' : 'start']?.bindingId
|
||||||
if (oppositeHandleBindingId) {
|
if (oppositeHandleBindingId) {
|
||||||
const oppositeToId = page.bindings[oppositeHandleBindingId].toId
|
// TODO: find out why this the binding here is sometimes missing
|
||||||
this.bindableShapeIds = this.bindableShapeIds.filter((id) => id !== oppositeToId)
|
const oppositeToId = page.bindings[oppositeHandleBindingId]?.toId
|
||||||
|
if (oppositeToId) {
|
||||||
|
this.bindableShapeIds = this.bindableShapeIds.filter((id) => id !== oppositeToId)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const { originPoint } = this.app
|
const { originPoint } = this.app
|
||||||
if (this.isCreate) {
|
if (this.isCreate) {
|
||||||
|
|
Loading…
Reference in a new issue