Skip to content

Commit

Permalink
Update equality check after PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Post committed Dec 4, 2019
1 parent 9ce0c62 commit 3824687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apollo-graphql/src/schema/buildSchemaFromSDL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export function addResolversToSchema(
const newValues: { [key: string]: GraphQLEnumValue } = {};
values.forEach(value => {
let newValue = (fieldConfigs as any)[value.name];
if (newValue == undefined) {
if (newValue === undefined) {
newValue = value.name;
}
newValues[value.name] = {
Expand Down

0 comments on commit 3824687

Please sign in to comment.