We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 736b29a commit beddfbbCopy full SHA for beddfbb
adminforth/spa/src/views/ListView.vue
@@ -197,7 +197,11 @@ async function getList() {
197
return {error: data.error};
198
}
199
rows.value = data.data?.map(row => {
200
- row._primaryKeyValue = row[coreStore.resource.columns.find(c => c.primaryKey).name];
+ if (coreStore.resource.columns.find(c => c.primaryKey).foreignResource) {
201
+ row._primaryKeyValue = row[coreStore.resource.columns.find(c => c.primaryKey).name].pk;
202
+ } else {
203
+ row._primaryKeyValue = row[coreStore.resource.columns.find(c => c.primaryKey).name];
204
+ }
205
return row;
206
});
207
totalRows.value = data.total;
0 commit comments