diff --git a/api/chalicelib/core/heatmaps.py b/api/chalicelib/core/heatmaps.py index 49371134c..47fe533b3 100644 --- a/api/chalicelib/core/heatmaps.py +++ b/api/chalicelib/core/heatmaps.py @@ -224,7 +224,7 @@ def search_short_session(data: schemas.HeatMapSessionsSearch, project_id, user_i break for f in data.events: if f.type == schemas.EventType.LOCATION: - location_condition = f + location_condition = f.model_copy() if len(f.value) == 0: f.operator = schemas.SearchEventOperator.IS_ANY elif f.type == schemas.EventType.CLICK: diff --git a/ee/api/chalicelib/core/heatmaps.py b/ee/api/chalicelib/core/heatmaps.py index 473e42a20..1020ecfb2 100644 --- a/ee/api/chalicelib/core/heatmaps.py +++ b/ee/api/chalicelib/core/heatmaps.py @@ -239,7 +239,7 @@ if not config("EXP_SESSIONS_SEARCH", cast=bool, default=False): break for f in data.events: if f.type == schemas.EventType.LOCATION: - location_condition = f + location_condition = f.model_copy() if len(f.value) == 0: f.operator = schemas.SearchEventOperator.IS_ANY elif f.type == schemas.EventType.CLICK: @@ -437,7 +437,7 @@ else: break for f in data.events: if f.type == schemas.EventType.LOCATION: - location_condition = f + location_condition = f.model_copy() if len(f.value) == 0: f.operator = schemas.SearchEventOperator.IS_ANY elif f.type == schemas.EventType.CLICK: