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 1f6f125 commit bd1b130Copy full SHA for bd1b130
adminforth/modules/restApi.ts
@@ -747,6 +747,15 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
747
748
data.data.forEach((item) => {
749
item[col.name] = targetDataMap[item[col.name]];
750
+
751
+ if (!item[col.name]) {
752
+ if (col.foreignResource && col.foreignResource.polymorphicResources) {
753
+ const systemResource = col.foreignResource.polymorphicResources.find(pr => pr.resourceId === null);
754
+ if (systemResource) {
755
+ item[col.foreignResource.polymorphicOn] = systemResource.whenValue;
756
+ }
757
758
759
});
760
})
761
);
0 commit comments