mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 08:38:09 +00:00
Handle cases where the entry is not found in entity-manager.load
This commit is contained in:
parent
8e6de48dc6
commit
b541be3748
@ -840,6 +840,10 @@ const createEntityManager = db => {
|
||||
},
|
||||
});
|
||||
|
||||
if (!entry) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return entry[field];
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user