When working with objects and key/value pairs as data the tag filter button doesn't interpret the data correctly because the second if condition Object.keys(data[i]) == 2 can't be true. I think you mean the length of the object so I added .length to check whether the object is a pair.
When working with objects and key/value pairs as data the tag filter button doesn't interpret the data correctly because the second if condition
Object.keys(data[i]) == 2
can't be true. I think you mean the length of the object so I added .length to check whether the object is a pair.