Commit f7ebb10d by Andrej Ocenas Committed by GitHub

Explore: Fix remounting of query row (#29771)

* Use passed data source in init

* Dummy commit
parent edbde6c0
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment