mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +00:00
remove comment
This commit is contained in:
parent
27b8b5b353
commit
ff6a198518
@ -5,7 +5,6 @@ const { merge } = require('lodash/fp');
|
||||
function getCountForRelation(entity, attributeName) {
|
||||
const entityAttribute = entity[attributeName];
|
||||
|
||||
// Check if is an array? what happens if its a one to one relation?
|
||||
if (Array.isArray(entityAttribute)) {
|
||||
return { count: entityAttribute.length };
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user