Handle cases where the entry is not found in entity-manager.load

This commit is contained in:
Convly 2021-09-10 15:51:38 +02:00
parent 8e6de48dc6
commit b541be3748

View File

@ -840,6 +840,10 @@ const createEntityManager = db => {
}, },
}); });
if (!entry) {
return null;
}
return entry[field]; return entry[field];
}, },