event listener only updates innerHTML on odd numbered circumstances
I have an index of projects that I want to be able to filter on click. The filter itself works fine on every click with the following code by hiding the visibility of non-highlighted projects, but the innerHTML of the filter (“all works” versus “selected works”) only updates when there’s an odd number of total projects in the index.