mirror of
https://github.com/strapi/strapi.git
synced 2025-11-16 01:57:56 +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) => {
|
const isPrivateAttribute = (model, attributeName) => {
|
||||||
return model?.privateAttributes?.includes(attributeName) || false;
|
return model?.privateAttributes?.includes(attributeName) ?? false;
|
||||||
};
|
};
|
||||||
|
|
||||||
const isScalarAttribute = (attribute) => {
|
const isScalarAttribute = (attribute) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user