From fd17c48e79abc3d7708600c72c2a5036614e7ecc Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 25 Dec 2023 12:45:59 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9888 --- app/src/protyle/render/av/relation.ts | 5 ++++- app/src/types/index.d.ts | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/protyle/render/av/relation.ts b/app/src/protyle/render/av/relation.ts index 8a5035778..92a394f7b 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 e9dd3f4dc..a2d877155 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 }