Skip to content

Commit

Permalink
feat(maps): assign key type from ast (#698)
Browse files Browse the repository at this point in the history
Signed-off-by: jonathan.casey <[email protected]>
jonathan-casey authored Aug 30, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0168e5e commit 0623b35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/concerto-core/lib/introspect/mapkeytype.js
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 0623b35

Please sign in to comment.