Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
fix(stitching): don't annotate primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Nov 7, 2019
1 parent e2b0dca commit 13934ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stitching/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export function createMergedResult(object: any, childrenErrors: ReadonlyArray<Gr
object = {
[MERGED_NULL_SYMBOL]: true,
};
} else if (typeof object !== 'object') {
return object;
}

if (Array.isArray(object)) {
Expand Down

0 comments on commit 13934ac

Please sign in to comment.