From f7ebb10dc5eee8e9c58716419d1c726bb5230888 Mon Sep 17 00:00:00 2001 From: Andrej Ocenas Date: Fri, 11 Dec 2020 15:50:59 +0100 Subject: [PATCH] Explore: Fix remounting of query row (#29771) * Use passed data source in init * Dummy commit --- public/app/features/explore/state/explorePane.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/explore/state/explorePane.ts b/public/app/features/explore/state/explorePane.ts index 980d3cfb0c9..2e155bacf86 100644 --- a/public/app/features/explore/state/explorePane.ts +++ b/public/app/features/explore/state/explorePane.ts @@ -272,6 +272,7 @@ export const paneReducer = (state: ExploreItemState = makeExplorePaneState(), ac if (initializeExploreAction.match(action)) { const { containerWidth, eventBridge, queries, range, originPanelId, datasourceInstance, history } = action.payload; + return { ...state, containerWidth, @@ -279,7 +280,7 @@ export const paneReducer = (state: ExploreItemState = makeExplorePaneState(), ac range, queries, initialized: true, - queryKeys: getQueryKeys(queries, state.datasourceInstance), + queryKeys: getQueryKeys(queries, datasourceInstance), originPanelId, update: makeInitialUpdateState(), datasourceInstance,