Function name is being condition for any from functions

pull/10616/head
Palak Bhojani 2019-01-03 12:39:59 -08:00
parent aaffe604fa
commit def2cdc287
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class FluxFunctionsToolbar extends PureComponent<Props, State> {
private handleUpdateScript = (funcName: string, funcExample: string) => {
const {activeQueryText, onSetActiveQueryText} = this.props
if (funcName === 'from') {
if (funcName.startsWith('from')) {
onSetActiveQueryText(`${activeQueryText}\n${funcExample}`)
} else {
onSetActiveQueryText(`${activeQueryText}\n |> ${funcExample}`)