mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
Merge pull request #12385 from HabitRPG/fix/time-travelers-pinning
fix filter reset on pinning items
This commit is contained in:
commit
2a0bc030d8
2 changed files with 12 additions and 6 deletions
|
|
@ -521,9 +521,12 @@ export default {
|
|||
categories () {
|
||||
if (this.shop.categories) {
|
||||
this.shop.categories.forEach(category => {
|
||||
this.$set(this.viewOptions, category.identifier, {
|
||||
selected: false,
|
||||
});
|
||||
// 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;
|
||||
|
|
|
|||
|
|
@ -379,9 +379,12 @@ export default {
|
|||
normalGroups.push(setCategory);
|
||||
|
||||
normalGroups.forEach(category => {
|
||||
this.$set(this.viewOptions, category.identifier, {
|
||||
selected: false,
|
||||
});
|
||||
// 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue