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/16034
Vanessa67384f569e53
diff --git a/app/src/protyle/render/av/filter.ts b/app/src/protyle/render/av/filter.tsindex 321ae4dfd5..be4fb84ef0 100644--- a/app/src/protyle/render/av/filter.ts+++ b/app/src/protyle/render/av/filter.ts@@ -456,6 +456,9 @@ export const setFilter = async (options: {const inputElement = element.querySelector("input");const listElement = inputElement.nextElementSibling as HTMLElement;const renderList = () => {+ if (!colData.relation || !colData.relation.avID) {+ return;+ }fetchPost("/api/av/getAttributeViewPrimaryKeyValues", {id: colData.relation.avID,keyword: inputElement.value,@@ -503,8 +506,9 @@ export const setFilter = async (options: {}});listElement.addEventListener("click", (event) => {- if (hasClosestByClassName(event.target as Element, "b3-list-item")) {- inputElement.value = listElement.querySelector(".b3-list-item--focus").textContent.replace(/\n/g, " ");+ const itemElement = hasClosestByClassName(event.target as Element, "b3-list-item");+ if (itemElement) {+ inputElement.value = itemElement.textContent.replace(/\n/g, " ");listElement.classList.add("fn__none");}});