fix(ui) - funnel - issues filter
This commit is contained in:
parent
3537df2a67
commit
4c9759b55d
2 changed files with 5 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ function FunnelIssues() {
|
|||
filters: item.filter.filters.filter((filter: any, index: any) => {
|
||||
const stage = widget.data.funnel.stages[index];
|
||||
return stage &&stage.isActive
|
||||
})
|
||||
}).map((f: any) => f.toJson())
|
||||
}
|
||||
}
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -6,8 +6,9 @@ import Funnelissue from 'App/mstore/types/funnelIssue';
|
|||
import { issueOptions, issueCategories, issueCategoriesMap } from 'App/constants/filterOptions';
|
||||
import { FilterKey } from 'Types/filter/filterType';
|
||||
import Period, { LAST_24_HOURS } from 'Types/app/period';
|
||||
import Funnel from "../types/funnel";
|
||||
import { metricService } from 'App/services';
|
||||
import { INSIGHTS, TABLE, WEB_VITALS } from 'App/constants/card';
|
||||
import { FUNNEL, INSIGHTS, TABLE, WEB_VITALS } from 'App/constants/card';
|
||||
import Error from '../types/error';
|
||||
import { getChartFormatter } from 'Types/dashboard/helper';
|
||||
|
||||
|
|
@ -210,6 +211,8 @@ export default class Widget {
|
|||
(i: any) =>
|
||||
new InishtIssue(i.category, i.name, i.ratio, i.oldValue, i.value, i.change, i.isNew)
|
||||
);
|
||||
} else if (this.metricType === FUNNEL) {
|
||||
_data.funnel = new Funnel().fromJSON(_data);
|
||||
} else {
|
||||
if (data.hasOwnProperty('chart')) {
|
||||
_data['value'] = data.value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue