Skip to content

Commit

Permalink
fix share clear interact selected status
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanhan authored and scottsut committed Jun 24, 2019
1 parent e7ad690 commit cf00e8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/app/containers/Widget/components/Chart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export class Chart extends React.PureComponent<IChartProps> {
onDoInteract(triggerData)
}
setTimeout(() => {
getDataDrillDetail(JSON.stringify({range: null, brushed, sourceData}))
if (getDataDrillDetail) {
getDataDrillDetail(JSON.stringify({range: null, brushed, sourceData}))
}
}, 500)
if (onSelectChartsItems) {
onSelectChartsItems(selectedItems)
Expand Down
3 changes: 3 additions & 0 deletions webapp/share/containers/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ export class Share extends React.Component<IDashboardProps, IDashboardStates> {
...this.state.interactingStatus,
[itemId]: false
}
}, () => {
const item = currentItems.find((ci) => ci.id === itemId)
this.getChartData('clear', itemId, item.widgetId)
})
}

Expand Down

0 comments on commit cf00e8b

Please sign in to comment.