diff --git a/api/chalicelib/core/custom_metrics.py b/api/chalicelib/core/custom_metrics.py index f72c25330..980740686 100644 --- a/api/chalicelib/core/custom_metrics.py +++ b/api/chalicelib/core/custom_metrics.py @@ -88,6 +88,7 @@ def __get_sessions_list(project_id, user_id, data: schemas.CardSchema): def __get_click_map_chart(project_id, user_id, data: schemas.CardClickMap, include_mobs: bool = True): if len(data.series) == 0: return None + data.series[0].filter.filters += data.series[0].filter.events return click_maps.search_short_session(project_id=project_id, user_id=user_id, data=schemas.ClickMapSessionsSearch( **data.series[0].filter.model_dump()), diff --git a/ee/api/chalicelib/core/custom_metrics.py b/ee/api/chalicelib/core/custom_metrics.py index a6d5440d3..daebabe4f 100644 --- a/ee/api/chalicelib/core/custom_metrics.py +++ b/ee/api/chalicelib/core/custom_metrics.py @@ -99,6 +99,7 @@ def __get_sessions_list(project_id, user_id, data: schemas.CardSchema): def __get_click_map_chart(project_id, user_id, data: schemas.CardClickMap, include_mobs: bool = True): if len(data.series) == 0: return None + data.series[0].filter.filters += data.series[0].filter.events return click_maps.search_short_session(project_id=project_id, user_id=user_id, data=schemas.ClickMapSessionsSearch( **data.series[0].filter.model_dump()),