From 32cdab4cbfc1fe5e7fdd1d1b6344db3305a85298 Mon Sep 17 00:00:00 2001 From: Marcus Efraimsson Date: Fri, 17 May 2019 10:11:55 +0200 Subject: [PATCH] explore: make sure datasource is added to target (#17116) Fixes a regression introduced in #16959 which removed datasource property from changed query for angular query editors having the result of loading explore URL's without datasource loaded the default query in query editor and Explore. Ref #16808 --- public/app/features/explore/QueryEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/explore/QueryEditor.tsx b/public/app/features/explore/QueryEditor.tsx index 54927b8cc91..5689f67ee13 100644 --- a/public/app/features/explore/QueryEditor.tsx +++ b/public/app/features/explore/QueryEditor.tsx @@ -35,7 +35,7 @@ export default class QueryEditor extends PureComponent { const loader = getAngularLoader(); const template = ' '; - const target = { ...initialQuery }; + const target = { datasource: datasource.name, ...initialQuery }; const scopeProps = { ctrl: { datasource,