Regarding my previous PR I found an issue when COMPONENTS variable isn't initialized, so now will check if COMPONENTS exists, and if not will assign "false" value to the previous added variables.
This issue happened when middle-click on filter icon. This commit doesn't change the functioning of the search function.
I just pushed a commit that moves the new variable declarations to the Library class' constructor instead of declaring the variables each time that the filter method is called.
Regarding my previous PR I found an issue when COMPONENTS variable isn't initialized, so now will check if COMPONENTS exists, and if not will assign "false" value to the previous added variables.
This issue happened when middle-click on filter icon. This commit doesn't change the functioning of the search function.