We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 296eed1 commit 5bddf3aCopy full SHA for 5bddf3a
adminforth/dataConnectors/baseConnector.ts
@@ -510,6 +510,9 @@ export default class AdminForthBaseConnector implements IAdminForthDataSourceCon
510
getRecordByPrimaryKey(resource: AdminForthResource, recordId: string): Promise<any> {
511
return this.getRecordByPrimaryKeyWithOriginalTypes(resource, recordId).then((record) => {
512
const newRecord = {};
513
+ if (!record) {
514
+ return null;
515
+ }
516
for (const col of resource.dataSourceColumns) {
517
newRecord[col.name] = this.getFieldValue(col, record[col.name]);
518
}
0 commit comments