From b712ec765b5ad3adbf741f2aa44fbe0cdbe1db3a Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Fri, 15 Mar 2019 17:30:04 -0700 Subject: [PATCH] ensure flux function gets added when no cursor --- ui/src/shared/components/TimeMachine/FluxQueryMaker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/shared/components/TimeMachine/FluxQueryMaker.tsx b/ui/src/shared/components/TimeMachine/FluxQueryMaker.tsx index f3ab06d93..dbabad3dc 100644 --- a/ui/src/shared/components/TimeMachine/FluxQueryMaker.tsx +++ b/ui/src/shared/components/TimeMachine/FluxQueryMaker.tsx @@ -58,7 +58,7 @@ interface State { class FluxQueryMaker extends PureComponent { private debouncer: Debouncer = new DefaultDebouncer() private getAST = restartable(getAST) - private cursorPosition: Position + private cursorPosition: Position = {line: 0, ch: 0} public constructor(props: Props) { super(props)