An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: https://github.com/siyuan-note/siyuan/issues/15495
Vanessac6f91f09c651
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex dceb3b4629..e4d6ac82e6 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -1095,8 +1095,10 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {const undoPreviousId = blockElement.querySelector(`.av__row[data-id="${selectedIds[0]}"]`).previousElementSibling.getAttribute("data-id") || "";const targetGroupID = targetElement.parentElement.getAttribute("data-group-id");selectedIds.reverse().forEach(item => {- if (previousID !== item && undoPreviousId !== previousID) {- const groupID = blockElement.querySelector(`.av__row[data-id="${item}"]`).parentElement.getAttribute("data-group-id");+ const groupID = blockElement.querySelector(`.av__row[data-id="${item}"]`).parentElement.getAttribute("data-group-id");+ if (previousID !== item && undoPreviousId !== previousID || (+ (undoPreviousId === "" && previousID === "" && targetGroupID !== groupID)+ )) {doOperations.push({action: "sortAttrViewRow",avID,@@ -1170,8 +1172,10 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {const undoPreviousId = blockElement.querySelector(`.av__gallery-item[data-id="${selectedIds[0]}"]`).previousElementSibling?.getAttribute("data-id") || "";const targetGroupID = targetElement.parentElement.parentElement.getAttribute("data-group-id");selectedIds.reverse().forEach(item => {- if (previousID !== item && undoPreviousId !== previousID) {- const groupID = blockElement.querySelector(`.av__gallery-item[data-id="${item}"]`).parentElement.parentElement.getAttribute("data-group-id");+ const groupID = blockElement.querySelector(`.av__gallery-item[data-id="${item}"]`).parentElement.parentElement.getAttribute("data-group-id");+ if (previousID !== item && undoPreviousId !== previousID || (+ (undoPreviousId === "" && previousID === "" && targetGroupID !== groupID)+ )) {doOperations.push({action: "sortAttrViewRow",avID,