score:3

Accepted answer

simple, do this

 onclick={() => handleproductquickview(product)}

now your 'product' object can access the slug property inside setmodaldata(product.slug)


Related Query

More Query from same tag