ui: add operator to clickmap card (#2700)
This commit is contained in:
parent
0c66686e15
commit
0cec551fa0
1 changed files with 11 additions and 2 deletions
|
|
@ -19,6 +19,7 @@ function ClickMapCard({
|
|||
|
||||
const sessionId = metricStore.instance.data.sessionId
|
||||
const url = metricStore.instance.data.path;
|
||||
const operator = metricStore.instance.series[0].filter.filters[0].operator
|
||||
|
||||
React.useEffect(() => {
|
||||
return () => setCustomSession(null)
|
||||
|
|
@ -37,8 +38,16 @@ function ClickMapCard({
|
|||
const rangeValue = dashboardStore.drillDownPeriod.rangeValue
|
||||
const startDate = dashboardStore.drillDownPeriod.start
|
||||
const endDate = dashboardStore.drillDownPeriod.end
|
||||
fetchInsights({ ...insightsFilters, url, startDate, endDate, rangeValue, clickRage: metricStore.clickMapFilter })
|
||||
}, [dashboardStore.drillDownPeriod.start, url, dashboardStore.drillDownPeriod.end, dashboardStore.drillDownPeriod.rangeValue, metricStore.clickMapFilter])
|
||||
fetchInsights({
|
||||
...insightsFilters,
|
||||
url,
|
||||
startDate,
|
||||
endDate,
|
||||
rangeValue,
|
||||
clickRage: metricStore.clickMapFilter,
|
||||
operator,
|
||||
})
|
||||
}, [dashboardStore.drillDownPeriod.start, operator, url, dashboardStore.drillDownPeriod.end, dashboardStore.drillDownPeriod.rangeValue, metricStore.clickMapFilter])
|
||||
|
||||
if (!metricStore.instance.data.domURL || insights.size === 0) {
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue