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 <jonathan.casey@docusign.com>
  • Loading branch information
jonathan-casey authored Aug 30, 2023
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
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 0623b35

Please sign in to comment.