Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Fix kanban group drag crash on non-title dragstart

Daniel74ae34685b3a
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts
index c3fd5b3888..fbf996c99e 100644
--- a/app/src/protyle/util/editorCommonEvent.ts
+++ b/app/src/protyle/util/editorCommonEvent.ts
@@ -991,7 +991,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
event.dataTransfer.setData(`${Constants.SIYUAN_DROP_GUTTER}NodeAttributeView${Constants.ZWSP}Col${Constants.ZWSP}${[target.getAttribute("data-col-id")]}`,
target.outerHTML);
return;
- } else if (kanbanTitleElement?.getAttribute("draggable") === "true") {
+ } else if (kanbanTitleElement && kanbanTitleElement.getAttribute("draggable") === "true") {
const groupElement = kanbanTitleElement.parentElement;
const groupRect = groupElement.getBoundingClientRect();
const ghostElement = document.createElement("div");