Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/10527

Vanessa992dbf2925fd
diff --git a/app/src/protyle/render/av/filter.ts b/app/src/protyle/render/av/filter.ts
index 2a32c57057..b02ecdef61 100644
--- a/app/src/protyle/render/av/filter.ts
+++ b/app/src/protyle/render/av/filter.ts
@@ -341,7 +341,7 @@ export const setFilter = async (options: {
let value = "";
if (filterValue) {
if (filterValue.type === "relation") {
- value = filterValue.relation.contents[0] || "";
+ value = filterValue.relation.blockIDs[0] || "";
} else {
value = filterValue[filterValue.type as "text"].content || "";
}
@@ -629,7 +629,7 @@ export const getFiltersHTML = (data: IAVTable) => {
}
} else if (["text", "block", "url", "phone", "email", "relation"].includes(filterValue.type) && filterValue[filterValue.type as "text"]) {
const content = filterValue[filterValue.type as "text"].content ||
- filterValue.relation?.contents[0] || "";
+ filterValue.relation?.blockIDs[0] || "";
if (["=", "Contains"].includes(filter.operator)) {
filterText = `: ${content}`;
} else if (filter.operator === "Does not contains") {