diff --git a/packages/concerto-core/lib/introspect/mapkeytype.js b/packages/concerto-core/lib/introspect/mapkeytype.js index 81f647711..74e79d876 100644 --- a/packages/concerto-core/lib/introspect/mapkeytype.js +++ b/packages/concerto-core/lib/introspect/mapkeytype.js @@ -102,8 +102,7 @@ class MapKeyType extends Decorated { this.type = 'String'; break; case `${MetaModelNamespace}.ObjectMapKeyType`: - decl = this.parent.getModelFile().getAllDeclarations().find(d => d.name === this.ast.type.name); - this.type = decl.getName(); + this.type = String(this.ast.type.name); break; } }