There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(editor): sentry-624432d8f1e6420ca9c5023a051f4332 (#9342)
doodlewind9b3a2fc0de45
diff --git a/blocksuite/affine/model/src/elements/mindmap/mindmap.ts b/blocksuite/affine/model/src/elements/mindmap/mindmap.tsindex 628215e298..0c05018c30 100644--- a/blocksuite/affine/model/src/elements/mindmap/mindmap.ts+++ b/blocksuite/affine/model/src/elements/mindmap/mindmap.ts@@ -230,14 +230,17 @@ export class MindmapElementModel extends GfxGroupLikeElementModel<MindmapElement},updateKey: boolean = true) {- const collapsed = 'collapsed' in options;+ const hasFromTo = 'to' in options;const { connector, from, layout } = options;- if (!from.element || (!collapsed && !options.to.element)) {+ if (!from?.element) {+ return { outdated: true, cacheKey: '' };+ }+ if (hasFromTo && !options.to?.element) {return { outdated: true, cacheKey: '' };}- const cacheKey = collapsed+ const cacheKey = !hasFromTo? `${from.element.xywh}-collapsed-${layout}-${this.style}`: `${from.element.xywh}-${options.to.element.xywh}-${layout}-${this.style}`;