This commit is contained in:
parent
fa26c6e4fb
commit
fd17c48e79
2 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
})
|
||||
|
|
6
app/src/types/index.d.ts
vendored
6
app/src/types/index.d.ts
vendored
|
@ -1164,7 +1164,7 @@ interface IAVCellAssetValue {
|
|||
}
|
||||
|
||||
interface IAVCellRelationValue {
|
||||
avID: string
|
||||
backKeyID: string
|
||||
isTwoWay: boolean
|
||||
avID?: string
|
||||
backKeyID?: string
|
||||
isTwoWay?: boolean
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue