fix: ensures non populated relationships still retain IDs

This commit is contained in:
James
2021-10-04 11:07:47 -04:00
parent d5d774877e
commit a20110974d

View File

@@ -38,7 +38,7 @@ const populate = async ({
idString = idString.toString();
}
let populatedRelationship = null;
let populatedRelationship;
if (depth && currentDepth <= depth) {
populatedRelationship = await payload.operations.collections.findByID({