Add temporary overrides to suggestions

pull/10616/head
ebb-tide 2018-05-17 14:15:15 -07:00 committed by Andrew Watkins
parent 4538e05710
commit f43131c99e
1 changed files with 5 additions and 0 deletions

View File

@ -380,6 +380,11 @@ export class IFQLPage extends PureComponent<Props, State> {
try {
const ast = await getAST({url: links.ast, body: script})
const suggs = this.state.suggestions
suggs[17] = {
name: 'join',
params: {tables: 'array', on: 'string', fn: 'function'},
}
const body = bodyNodes(ast, this.state.suggestions)
const status = {type: 'success', text: ''}
this.setState({ast, script, body, status})