Skip to content

Commit b34525f

Browse files
committed
fix: support parent resources which have both foreighnKey and primaryKey in same column
1 parent 8a45480 commit b34525f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

custom/InlineList.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,21 @@ const endFilters = computed(() => {
191191
}), 10000);
192192
return [];
193193
}
194+
195+
let primaryKeyValue = null;
196+
if (primaryKeyColumn.foreignResource) {
197+
primaryKeyColumn = props.record[primaryKeyColumn.name].value;
198+
} else {
199+
primaryKeyValue = props.record[primaryKeyColumn.name];
200+
}
201+
202+
194203
return [
195204
...filters.value,
196205
{
197206
field: refColumn.name,
198207
operator: 'eq',
199-
value: props.record[primaryKeyColumn.name],
208+
value: primaryKeyValue,
200209
},
201210
];
202211
});

0 commit comments

Comments
 (0)