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 }