change fetch (#3474)

* change fetch

* change fetch url
This commit is contained in:
Andrey Babushkin 2025-06-03 14:45:49 +02:00 committed by GitHub
parent 373238429e
commit c8f7a2e453
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ export default class MetricService {
) {
return Promise.resolve({});
}
const path = isSaved ? `/dashboards/${metric.dashboardId}/cards/${metric.metricId}` : '/cards/try';
const path = isSaved ? `/dashboards/${metric.dashboardId}/cards/${metric.metricId}/chart` : '/cards/try';
if (metric.metricType === USER_PATH) {
data.density = 5;
data.metricOf = 'sessionCount';