I have this code which by selecting line it will fetch data and show, and this is working properly, but I need to change it to this way:
Instead of dispatching this actio