<commit_before>import { buildFilterProductsQuery } from '@vue-storefront/store/helpers'

export default {
  name: 'CategorySidebar',
  props: {
    filters: {
      type: Object,
      required: true
    }
  },
  computed: {
    category () {
      return this.$store.state.category.current
    },
    vuexFilters () {
      return this.$store.state.category.filters
    }
  },
  methods: {
    sortById (filters) {
      return [...filters].sort((a, b) => { return a.id - b.id })
    },
    resetAllFilters () {
      this.$bus.$emit('filter-reset')
      this.$store.dispatch('category/resetFilters')
      const filterQr = buildFilterProductsQuery(this.category, this.vuexFilters.chosen)
      const fsC = Object.assign({}, this.vuexFilters.chosen)
      this.$store.state.category.current_product_query = Object.assign(this.$store.state.category.current_product_query, {
        searchProductQuery: filterQr,
        configuration: fsC
      })
      this.$store.dispatch('category/products', this.$store.state.category.current_product_query)
    }
  }
}<commit_msg>Remove unnecessary config from product query<commit_after>import { buildFilterProductsQuery } from '@vue-storefront/store/helpers'

export default {
  name: 'CategorySidebar',
  props: {
    filters: {
      type: Object,
      required: true
    }
  },
  computed: {
    category () {
      return this.$store.state.category.current
    },
    vuexFilters () {
      return this.$store.state.category.filters
    }
  },
  methods: {
    sortById (filters) {
      return [...filters].sort((a, b) => { return a.id - b.id })
    },
    resetAllFilters () {
      this.$bus.$emit('filter-reset')
      this.$store.dispatch('category/resetFilters')
      const filterQr = buildFilterProductsQuery(this.category, this.vuexFilters.chosen)
      this.$store.state.category.current_product_query = Object.assign(this.$store.state.category.current_product_query, {
        searchProductQuery: filterQr
      })
      this.$store.dispatch('category/products', this.$store.state.category.current_product_query)
    }
  }
}
{'fraction_non_alphanumeric': 0.13592699327569643, 'fraction_numerical': 0.0, 'mean_word_length': 3.0057692307692307, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4880663', 'n_tokens_mistral': 627, 'n_tokens_neox': 634, 'n_words': 97}