Skip to content

Commit

Permalink
fix: sentry-2d6423fce9c242ec9e63364243a6cf59 (#8891)
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlewind authored Dec 7, 2024
1 parent 188b25e commit feb43ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/affine/model/src/elements/mindmap/mindmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ export class MindmapElementModel extends GfxGroupLikeElementModel<MindmapElement
updateKey: boolean = true
) {
const { connector, from, to, layout } = options;

if (!from.element || !to.element) {
return { outdated: true, cacheKey: '' };
}

const cacheKey = `${from.element.xywh}-${to.element.xywh}-${layout}-${this.style}`;

// @ts-ignore
Expand Down

0 comments on commit feb43ed

Please sign in to comment.