ui: fix subcat for heatmap
This commit is contained in:
parent
7cfe29adf3
commit
3e1f073e07
2 changed files with 5 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import { pageUrlOperators } from '../../constants/filterOptions';
|
|||
export default class FilterItem {
|
||||
type: string = '';
|
||||
category: FilterCategory = FilterCategory.METADATA;
|
||||
subCategory: string = '';
|
||||
key: string = '';
|
||||
label: string = '';
|
||||
value: any = [''];
|
||||
|
|
@ -63,6 +64,7 @@ export default class FilterItem {
|
|||
this.operatorOptions = data.operatorOptions;
|
||||
this.hasSource = data.hasSource;
|
||||
this.category = data.category;
|
||||
this.subCategory = data.subCategory;
|
||||
this.sourceOperatorOptions = data.sourceOperatorOptions;
|
||||
this.value = data.value;
|
||||
this.isEvent = Boolean(data.isEvent);
|
||||
|
|
@ -109,6 +111,7 @@ export default class FilterItem {
|
|||
this.operatorOptions = _filter.operatorOptions;
|
||||
this.hasSource = _filter.hasSource;
|
||||
this.category = _filter.category;
|
||||
this.subCategory = _filter.subCategory;
|
||||
this.sourceOperatorOptions = _filter.sourceOperatorOptions;
|
||||
if (isHeatmap && this.key === FilterKey.LOCATION) {
|
||||
this.operatorOptions = pageUrlOperators;
|
||||
|
|
|
|||
|
|
@ -902,7 +902,8 @@ export const clickmapFilter = {
|
|||
type: FilterType.MULTIPLE,
|
||||
category: FilterCategory.EVENTS,
|
||||
subCategory: FilterCategory.AUTOCAPTURE,
|
||||
label: 'Visited URL', placeholder: 'Enter URL or path',
|
||||
label: 'Visited URL',
|
||||
placeholder: 'Enter URL or path',
|
||||
operator: filterOptions.pageUrlOperators[0].value,
|
||||
operatorOptions: filterOptions.pageUrlOperators,
|
||||
icon: 'filters/location',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue