Attribute value - Filter Field

Hello,

So I made a field to filter items by ‘Size’ attribute, this field should list all the attribute values from the Size Item attribute.

So far I have this code below inside the (point_of_sale.js)

and the result as in the image below, NOTE that the result list should contain more than 7 options.

any help in achieving my goal is appreciated.