ui: fix subcat for heatmap

This commit is contained in:
nick-delirium 2025-02-20 15:39:37 +01:00
parent 7cfe29adf3
commit 3e1f073e07
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -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',