diff --git a/frontend/app/mstore/types/filterItem.ts b/frontend/app/mstore/types/filterItem.ts index 18716fb55..31f7ff94f 100644 --- a/frontend/app/mstore/types/filterItem.ts +++ b/frontend/app/mstore/types/filterItem.ts @@ -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; diff --git a/frontend/app/types/filter/newFilter.js b/frontend/app/types/filter/newFilter.js index 8ae2b0019..345bbeaa9 100644 --- a/frontend/app/types/filter/newFilter.js +++ b/frontend/app/types/filter/newFilter.js @@ -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',