fix(ui): change clickmap fetch filter

This commit is contained in:
nick-delirium 2023-02-20 17:24:09 +01:00 committed by Taha Yassine Kraiem
parent dc9f3f79ee
commit b93c2ed269

View file

@ -75,7 +75,7 @@ export default class MetricService {
getMetricChartData(metric: Widget, data: any, isWidget: boolean = false): Promise<any> {
if (
metric.metricType === CLICKMAP
&& document.location.pathname.split('/').pop() !== 'metrics'
&& document.location.pathname.split('/').pop() === 'metrics'
&& (document.location.pathname.indexOf('dashboard') !== -1 && document.location.pathname.indexOf('metric') === -1)
) {
return Promise.resolve({})