Apply to section missing

Hi

I am creating the shopify function to apply the discount code on product line item properties based. if the product has specific line item properties then the discount will not applied.

But when i created the discount using shopify function , the apply to section having option to choose the product or variant is missing. Check screenshot 1. Can any one guide me how to add apply to section in shopify functions like in the default discount . Check screenshot 2

Screenshot 2 :-

Thanks

This is not a default capability of a Function-based discount, you would need to create your own configuration UI and function logic to limit your function based on product.