Function name is being condition for any from functions
parent
aaffe604fa
commit
def2cdc287
|
@ -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}`)
|
||||
|
|
Loading…
Reference in New Issue