From 746e94ec6c9e077fd5000789a2dbf97cb7a79a15 Mon Sep 17 00:00:00 2001 From: Chau Tran Date: Sun, 14 Mar 2021 14:03:10 -0500 Subject: [PATCH] fix(core): add non-null assertion to mapMemberFn[misc] when transformation type is MapFrom/MapWith --- .../core/src/lib/create-mapper/create-map-for-member.util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/lib/create-mapper/create-map-for-member.util.ts b/packages/core/src/lib/create-mapper/create-map-for-member.util.ts index a61202a08..67f254315 100644 --- a/packages/core/src/lib/create-mapper/create-map-for-member.util.ts +++ b/packages/core/src/lib/create-mapper/create-map-for-member.util.ts @@ -59,7 +59,7 @@ export function createMapForMember< mapMemberFn[MapFnClassId.type] === TransformationType.MapWith) && mapMemberFn[MapFnClassId.misc] != null ) { - sourcePath = getMemberPath(mapMemberFn[MapFnClassId.misc]); + sourcePath = getMemberPath(mapMemberFn[MapFnClassId.misc]!); } // initialize MappingProperty