change fetch
This commit is contained in:
parent
c35ace3544
commit
c8d0c39480
1 changed files with 5 additions and 1 deletions
|
|
@ -100,7 +100,11 @@ export default class MetricService {
|
||||||
) {
|
) {
|
||||||
return Promise.resolve({});
|
return Promise.resolve({});
|
||||||
}
|
}
|
||||||
const path = isSaved ? `/dashboards/${metric.dashboardId}/cards/${metric.metricId}` : '/cards/try';
|
let metricId = metric.metricId;
|
||||||
|
if (metricId.endsWith('/chart')) {
|
||||||
|
metricId = metricId.split('/')[0];
|
||||||
|
}
|
||||||
|
const path = isSaved ? `/dashboards/${metric.dashboardId}/cards/${metricId}` : '/cards/try';
|
||||||
if (metric.metricType === USER_PATH) {
|
if (metric.metricType === USER_PATH) {
|
||||||
data.density = 5;
|
data.density = 5;
|
||||||
data.metricOf = 'sessionCount';
|
data.metricOf = 'sessionCount';
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue