Explore: Fix remounting of query row (#29771)

* Use passed data source in init

* Dummy commit
This commit is contained in:
Andrej Ocenas 2020-12-11 15:50:59 +01:00 committed by GitHub
parent edbde6c06b
commit f7ebb10dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,