Skip to content

Commit 0623b35

Browse files
feat(maps): assign key type from ast (#698)
Signed-off-by: jonathan.casey <[email protected]>
1 parent 0168e5e commit 0623b35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/concerto-core/lib/introspect/mapkeytype.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ class MapKeyType extends Decorated {
102102
this.type = 'String';
103103
break;
104104
case `${MetaModelNamespace}.ObjectMapKeyType`:
105-
decl = this.parent.getModelFile().getAllDeclarations().find(d => d.name === this.ast.type.name);
106-
this.type = decl.getName();
105+
this.type = String(this.ast.type.name);
107106
break;
108107
}
109108
}

0 commit comments

Comments
 (0)