diff --git a/public/app/features/explore/state/actions.ts b/public/app/features/explore/state/actions.ts index 4f95744eb47..604101c6632 100644 --- a/public/app/features/explore/state/actions.ts +++ b/public/app/features/explore/state/actions.ts @@ -122,6 +122,7 @@ export function changeDatasource(exploreId: ExploreId, datasource: string): Thun */ export function changeMode(exploreId: ExploreId, mode: ExploreMode): ThunkResult { return dispatch => { + dispatch(clearQueries(exploreId)); dispatch(changeModeAction({ exploreId, mode })); dispatch(runQueries(exploreId)); };