Skip to content

Commit 47eabbc

Browse files
committed
fix: fix outputing owner data for polymorphic relations
1 parent 3d7c341 commit 47eabbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/modules/restApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
764764
}
765765

766766
data.data.forEach((item) => {
767-
item[col.name] = targetDataMap[item[col.name]];
767+
// item[col.name] = targetDataMap[item[col.name]];, commented by @Vitalii
768768
if (col.isArray?.enabled) {
769769
if (item[col.name]?.length) {
770770
item[col.name] = item[col.name].map((i) => targetDataMap[i]);

0 commit comments

Comments
 (0)