Skip to content

Commit

Permalink
fix(core): null check for source selector on MapFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Mar 4, 2021
1 parent 7fb47ac commit a489d9c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ export function createMapForMember<

// if the transformation is MapFrom or MapWith, we have information on the source value selector
if (
mapMemberFn[MapFnClassId.type] === TransformationType.MapFrom ||
mapMemberFn[MapFnClassId.type] === TransformationType.MapWith
(mapMemberFn[MapFnClassId.type] === TransformationType.MapFrom ||
mapMemberFn[MapFnClassId.type] === TransformationType.MapWith) &&
mapMemberFn[MapFnClassId.misc] != null
) {
sourcePath = getMemberPath(mapMemberFn[MapFnClassId.misc]!);
sourcePath = getMemberPath(mapMemberFn[MapFnClassId.misc]);
}

// initialize MappingProperty
Expand Down

0 comments on commit a489d9c

Please sign in to comment.