Skip to content
Permalink
Browse files

fix #293 - Set and Mana filter stuck on last state

Set and Mana filters now reset on changing to Collection
  • Loading branch information...
ptasznikarium committed Apr 28, 2019
1 parent 1f8abce commit c3858ba0d58d06d027fe8a9117c1f051fc41e2b1
Showing with 4 additions and 2 deletions.
  1. +4 −2 window_main/collection.js
@@ -25,8 +25,8 @@ global
*/
let collectionPage = 0;
let sortingAlgorithm = "Sort by Set";
let filteredSets = [];
let filteredMana = [];
let filteredSets;
let filteredMana;
let orderedSets;

const ALL_CARDS = "All cards";
@@ -37,6 +37,8 @@ let countMode = ALL_CARDS;

//
function openCollectionTab() {
filteredSets = [];
filteredMana = [];
orderedSets = [];
for (let set in setsList) {
orderedSets.push(set);

0 comments on commit c3858ba

Please sign in to comment.
You can’t perform that action at this time.