Skip to content

Commit

Permalink
fix(gql): autocomplete with all OP by default
Browse files Browse the repository at this point in the history
Closes #2195
  • Loading branch information
Shane Wilson committed Apr 29, 2016
1 parent e59ffa2 commit 416045b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/scripts/components/gql/module.ts
Expand Up @@ -363,10 +363,8 @@ module ngApp.components.gql {
return [T.EQ, T.NE, T.GT, T.GTE, T.LT, T.LTE, T.IS, T.NOT].indexOf(item.full.toString()) != -1
} else if ((op.full || '').toString().indexOf('datetime') != -1) {
return [T.GT, T.GTE, T.LT, T.LTE, T.IS, T.NOT].indexOf(item.full.toString()) != -1
} else if (op.type === 'string') {
return [T.EQ, T.NE, T.IN, T.EXCLUDE, T.IS, T.NOT].indexOf(item.full.toString()) != -1
} else {
return false;
return [T.EQ, T.NE, T.IN, T.EXCLUDE, T.IS, T.NOT].indexOf(item.full.toString()) != -1
}
}
);
Expand Down

0 comments on commit 416045b

Please sign in to comment.