fixes #8221 - fixed publish failing if non-repeateable component data is "null" (#8222)

Signed-off-by: Stanko <stanko.tadic@gmail.com>
This commit is contained in:
Stanko Tadić 2020-10-07 14:20:18 +02:00 committed by GitHub
parent 983c61c144
commit 848d554c79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ const getDraftRelations = (data, ctSchema, components) => {
currentData.forEach(curr => {
acc += getDraftRelationsCount(curr, compoSchema);
});
} else {
} else if (currentData !== null) {
acc += getDraftRelationsCount(currentData, compoSchema);
}
}