From def2cdc287040741e76e7237ac8bb61f338c9e9f Mon Sep 17 00:00:00 2001 From: Palak Bhojani Date: Thu, 3 Jan 2019 12:39:59 -0800 Subject: [PATCH] Function name is being condition for any from functions --- .../components/flux_functions_toolbar/FluxFunctionsToolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/shared/components/flux_functions_toolbar/FluxFunctionsToolbar.tsx b/ui/src/shared/components/flux_functions_toolbar/FluxFunctionsToolbar.tsx index 322229a896..218889fe4d 100644 --- a/ui/src/shared/components/flux_functions_toolbar/FluxFunctionsToolbar.tsx +++ b/ui/src/shared/components/flux_functions_toolbar/FluxFunctionsToolbar.tsx @@ -74,7 +74,7 @@ class FluxFunctionsToolbar extends PureComponent { 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}`)