[log] Add dashboard_id param to explore_json request (#9243)

* [log] Add dashboard_id param to explore_json request

* fix cypress test
This commit is contained in:
Grace Guo
2020-03-08 19:51:08 -07:00
committed by GitHub
parent 8cabea5cb8
commit 8bc30da621
15 changed files with 101 additions and 28 deletions

View File

@@ -28,6 +28,7 @@ import { getActiveFilters } from '../util/activeDashboardFilters';
const propTypes = {
slice: PropTypes.object.isRequired,
componentId: PropTypes.string.isRequired,
dashboardId: PropTypes.number.isRequired,
addDangerToast: PropTypes.func.isRequired,
isCached: PropTypes.bool,
isExpanded: PropTypes.bool,
@@ -91,7 +92,10 @@ class SliceHeaderControls extends React.PureComponent {
refreshChart() {
if (this.props.updatedDttm) {
this.props.forceRefresh(this.props.slice.slice_id);
this.props.forceRefresh(
this.props.slice.slice_id,
this.props.dashboardId,
);
}
}