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,