Skip to content

Commit

Permalink
fix: regression for variable def completion graphql#1622
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Jul 29, 2020
1 parent 1b8fe31 commit 0d4f19b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ export function getAutocompleteSuggestions(
(kind === RuleKinds.NAMED_TYPE &&
state.prevState &&
(state.prevState.kind === RuleKinds.VARIABLE_DEFINITION ||
state.prevState.kind === RuleKinds.LIST_TYPE))
state.prevState.kind === RuleKinds.LIST_TYPE ||
state.prevState.kind === RuleKinds.NON_NULL_TYPE))
) {
return getSuggestionsForVariableDefinition(token, schema, kind);
}
Expand Down

0 comments on commit 0d4f19b

Please sign in to comment.