From 6ca1ae309a4cfbfa7f85c691d63c72f0a8277772 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Fri, 15 Mar 2019 08:52:25 +0100 Subject: [PATCH] set correct return type --- public/app/core/utils/explore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/utils/explore.ts b/public/app/core/utils/explore.ts index 06456fef0ba..45e26e79ebf 100644 --- a/public/app/core/utils/explore.ts +++ b/public/app/core/utils/explore.ts @@ -226,7 +226,7 @@ export function generateKey(index = 0): string { return `Q-${Date.now()}-${Math.random()}-${index}`; } -export function generateEmptyQuery(queries: DataQuery[], index = 0): { refId: string; key: string } { +export function generateEmptyQuery(queries: DataQuery[], index = 0): DataQuery { return { refId: getNextRefIdLetter(queries), key: generateKey(index) }; }