Skip to content

Commit

Permalink
bugfix: handle undefined typeMeta.reflectedType in convert
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Salicis committed Jul 31, 2020
1 parent b52a749 commit 1b899f2
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 1b899f2

Please sign in to comment.