diff --git a/src/Core.js b/src/Core.js index 9d38cdd6..3f2ded0f 100644 --- a/src/Core.js +++ b/src/Core.js @@ -256,8 +256,7 @@ export default function Core(options) { const entity = getEntity(bemName(fields)); - entity.modDecls = entity.modDecls || []; - entity.modDecls.push({ predicate, fields, staticFields }); + (entity.modDecls || (entity.modDecls = [])).push({ predicate, fields, staticFields }); return entity; }