ui: change card endpoint

This commit is contained in:
nick-delirium 2025-04-30 09:22:00 +02:00
parent 718b3f3223
commit 2c0a75b11f
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

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