mirror of
https://github.com/strapi/strapi.git
synced 2025-08-07 00:09:23 +00:00
Signed-off-by: Stanko <stanko.tadic@gmail.com>
This commit is contained in:
parent
983c61c144
commit
848d554c79
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user