Change address button not working on cart page

When user wants to change address on cart page, instead of list of other addresses dialog box will open with jinja template in billing and shipping address.
image
and also routing on incorrect page when user click on edit button given below address

Version

Frappe version 14
Erpnext Version 14.21.0