Update packages/core/utils/lib/content-types.js

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
This commit is contained in:
Marc 2023-03-02 09:17:44 +01:00 committed by GitHub
parent 571ed83628
commit 8ac67d6b8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) => {