An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/15573
Vanessa462469c4908e
diff --git a/app/src/protyle/render/av/gallery/item.ts b/app/src/protyle/render/av/gallery/item.tsindex 909d7e07ec..bdbad1381b 100644--- a/app/src/protyle/render/av/gallery/item.ts+++ b/app/src/protyle/render/av/gallery/item.ts@@ -21,7 +21,10 @@ export const insertGalleryItemAnimation = (options: {const bodyElement = options.blockElement.querySelector(`.av__body[data-group-id="${options.groupID}"] `);if (bodyElement && ["updated", "created"].includes(bodyElement.getAttribute("data-dtype")) &&bodyElement.getAttribute("data-content") !== "_@today@_") {- sideItemElement = options.blockElement.querySelector('.av__body[data-content="_@today@_"] .av__gallery-add').previousElementSibling;+ sideItemElement = options.blockElement.querySelector('.av__body[data-content="_@today@_"] .av__gallery-add')?.previousElementSibling;+ if (!sideItemElement) {+ return;+ }}let cellsHTML = "";sideItemElement?.querySelectorAll(".av__cell").forEach((item: HTMLElement) => {diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.tsindex 2731e83efa..7e31135a72 100644--- a/app/src/protyle/render/av/row.ts+++ b/app/src/protyle/render/av/row.ts@@ -130,9 +130,11 @@ export const insertAttrViewBlockAnimation = (options: {const bodyElement = options.blockElement.querySelector(`.av__body[data-group-id="${options.groupID}"] `);if (bodyElement && ["updated", "created"].includes(bodyElement.getAttribute("data-dtype")) &&bodyElement.getAttribute("data-content") !== "_@today@_") {- previousElement = options.blockElement.querySelector('.av__body[data-content="_@today@_"] .av__row--util').previousElementSibling;+ previousElement = options.blockElement.querySelector('.av__body[data-content="_@today@_"] .av__row--util')?.previousElementSibling;+ if (!previousElement) {+ return;+ }}-let cellsHTML = '<div class="av__colsticky"><div class="av__firstcol"><svg><use xlink:href="#iconUncheck"></use></svg></div></div>';const pinIndex = previousElement.querySelectorAll(".av__colsticky .av__cell").length - 1;if (pinIndex > -1) {