mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
Update packages/core/utils/lib/content-types.js
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
This commit is contained in:
parent
571ed83628
commit
8ac67d6b8b
@ -100,7 +100,7 @@ const getPrivateAttributes = (model = {}) => {
|
||||
};
|
||||
|
||||
const isPrivateAttribute = (model, attributeName) => {
|
||||
return model?.privateAttributes?.includes(attributeName) || false;
|
||||
return model?.privateAttributes?.includes(attributeName) ?? false;
|
||||
};
|
||||
|
||||
const isScalarAttribute = (attribute) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user