fix filter reset on pinning items - fixes #9500

This commit is contained in:
negue
2020-07-12 20:43:51 +02:00
parent d861236f44
commit 0acc7d19c5
2 changed files with 12 additions and 6 deletions

View File

@@ -521,9 +521,12 @@ export default {
categories () {
if (this.shop.categories) {
this.shop.categories.forEach(category => {
// do not reset the viewOptions if already set once
if (typeof this.viewOptions[category.identifier] === 'undefined') {
this.$set(this.viewOptions, category.identifier, {
selected: false,
});
}
});
return this.shop.categories;

View File

@@ -379,9 +379,12 @@ export default {
normalGroups.push(setCategory);
normalGroups.forEach(category => {
// do not reset the viewOptions if already set once
if (typeof this.viewOptions[category.identifier] === 'undefined') {
this.$set(this.viewOptions, category.identifier, {
selected: false,
});
}
});
return normalGroups;