Skip to content

Commit 6fbe148

Browse files
committed
Merge branch 'next' of github.com:devforth/adminforth into test
2 parents 923da28 + 8d65703 commit 6fbe148

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+19520
-28
lines changed

adminforth/dataConnectors/baseConnector.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@ export default class AdminForthBaseConnector implements IAdminForthDataSourceCon
516516
getRecordByPrimaryKey(resource: AdminForthResource, recordId: string): Promise<any> {
517517
return this.getRecordByPrimaryKeyWithOriginalTypes(resource, recordId).then((record) => {
518518
const newRecord = {};
519+
if (!record) {
520+
return null;
521+
}
519522
for (const col of resource.dataSourceColumns) {
520523
newRecord[col.name] = this.getFieldValue(col, record[col.name]);
521524
}

0 commit comments

Comments
 (0)