Skip to content

Commit

Permalink
Merge pull request epiphone#45 from gliluaume/bugfix/undefined-reflec…
Browse files Browse the repository at this point in the history
…tedType

bugfix: handle undefined typeMeta.reflectedType in convert
  • Loading branch information
epiphone authored Aug 1, 2020
2 parents b52a749 + 1b899f2 commit 7cbb45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function applyConverters(
meta.target as Function,
meta.propertyName
)
const isMap = typeMeta && new typeMeta.reflectedType() instanceof Map
const isMap = typeMeta && typeMeta.reflectedType && new typeMeta.reflectedType() instanceof Map

const converter =
converters[meta.type] || converters[cv.ValidationTypes.CUSTOM_VALIDATION]
Expand Down

0 comments on commit 7cbb45b

Please sign in to comment.