Skip to content

Commit

Permalink
Fixed invalidFileVariable method.
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Feb 2, 2020
1 parent 48d5ccf commit 941efa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/altair-app/src/app/services/gql/gql.service.ts
Expand Up @@ -325,7 +325,7 @@ export class GqlService {
}

hasInvalidFileVariable(fileVariables: fromVariables.FileVariable[]) {
return fileVariables.filter(file => !file || !(file.data instanceof File) || !file.name);
return fileVariables.filter(file => !file || !(file.data instanceof File) || !file.name).length;
}

getActualTypeName(type: GraphQLType) {
Expand Down

0 comments on commit 941efa2

Please sign in to comment.