diff --git a/src/views/admin/components/filter-types/date/TainacanFilterDate.vue b/src/views/admin/components/filter-types/date/TainacanFilterDate.vue index 5c6e30649..c2e8aaa1f 100644 --- a/src/views/admin/components/filter-types/date/TainacanFilterDate.vue +++ b/src/views/admin/components/filter-types/date/TainacanFilterDate.vue @@ -60,16 +60,6 @@ ≤  {{ $i18n.get('before_or_on_day') }} - - diff --git a/src/views/admin/js/filter-types-mixin.js b/src/views/admin/js/filter-types-mixin.js index c01f95675..c6f2920e5 100644 --- a/src/views/admin/js/filter-types-mixin.js +++ b/src/views/admin/js/filter-types-mixin.js @@ -284,8 +284,8 @@ export const dynamicFilterTypeMixin = { if ( this.options.length < this.maxNumOptionsCheckboxList && !search ) this.noMorePage = 1; - - if ( ( this.filterTypeOptions && this.filterTypeOptions.use_max_options == true && this.filter.max_options ) && this.options.length >= this.filter.max_options ) { + + if ( ( this.filter.filter_type_object && this.filter.filter_type_object.use_max_options == true && this.filter.max_options ) && this.options.length >= this.filter.max_options ) { let showViewAllButton = true; if ( this.options.length === this.filter.max_options ) @@ -357,7 +357,7 @@ export const dynamicFilterTypeMixin = { if ( this.options.length < this.maxNumOptionsCheckboxList ) this.noMorePage = 1; - if ( ( this.filterTypeOptions && this.filterTypeOptions.use_max_options == true && this.filter.max_options ) && this.options.length >= this.filter.max_options ) { + if ( ( this.filter.filter_type_object && this.filter.filter_type_object.use_max_options == true && this.filter.max_options ) && this.options.length >= this.filter.max_options ) { let showViewAllButton = true; if ( this.options.length === this.filter.max_options )