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) }; }