Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Aug 11, 2020
1 parent bad1e54 commit 0924da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/stitch/src/stitchingInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ function createMergedTypes(

Object.keys(typeCandidates).forEach(typeName => {
if (
isObjectType(typeCandidates[typeName][0].type) ||
(isInterfaceType(typeCandidates[typeName][0].type) && typeCandidates[typeName].length > 1)
typeCandidates[typeName].length > 1 &&
(isObjectType(typeCandidates[typeName][0].type) || isInterfaceType(typeCandidates[typeName][0].type))
) {
const typeCandidatesWithMergedTypeConfig = typeCandidates[typeName].filter(
typeCandidate =>
Expand Down

0 comments on commit 0924da4

Please sign in to comment.