## Bug description

When you create a trend with two lines, one of which is say $pageview with a filter of browser = chrome and the other is ALSO $pageview but a different filter.

If you click on any the line you get the same users in the persons modal, even if you switch the trend line toggle in the modal.

## How to reproduce

1. Create a new trend
2. Add a $pageview trendline, and another $pageview trendline with a subfilter
3. Click on any of the lines
4. Open the persons modal and switch between the trend lines in the persons modal

## Environment

- [x] PostHog Cloud
- [ ] self-hosted PostHog (ClickHouse-based), version/commit: _please provide_
- [ ] self-hosted PostHog (Postgres-based, legacy), version/commit: _please provide_

## Additional context



#### *Thank you* for your bug report – we love squashing them!

posthog/api/utils.py
import json
import re
from dataclasses import dataclass
from enum import Enum, auto
from typing import Any, List, Optional, Tuple, Union, cast
from ratelimit import limits
from rest_framework import request, status
from sentry_sdk import capture_exception
from statshog.defaults.django import statsd
from ee.models import EnterpriseEventDefinition
from posthog.exceptions import RequestParsingError, generate_exception_response
from posthog.models import Action, Entity, EventDefinition
from posthog.models.entity import MATH_TYPE
from posthog.models.filters.filter import Filter
from posthog.models.filters.stickiness_filter import StickinessFilter
from posthog.models.team import Team
from posthog.models.user import User
from posthog.utils import cors_response, load_data_from_request
class PaginationMode(Enum):