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/9888

Vanessafd17c48e79ab
diff --git a/app/src/protyle/render/av/relation.ts b/app/src/protyle/render/av/relation.ts
index 8a50357786..92a394f7b8 100644
--- a/app/src/protyle/render/av/relation.ts
+++ b/app/src/protyle/render/av/relation.ts
@@ -115,7 +115,10 @@ export const updateRelation = (options: {
let colData: IAVColumn;
options.colsData.find(item => {
if (item.id === colId) {
- colData = item
+ if (!item.relation) {
+ item.relation = {}
+ }
+ colData = item;
return true;
}
})
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index e9dd3f4dc9..a2d877155a 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -1164,7 +1164,7 @@ interface IAVCellAssetValue {
}
interface IAVCellRelationValue {
- avID: string
- backKeyID: string
- isTwoWay: boolean
+ avID?: string
+ backKeyID?: string
+ isTwoWay?: boolean
}