Shopify liquid, cart drawer, quantity buttons/remove items not working with upsell item in cart-drawer functionality. There’s a problem with the AJAX

I’ve been troubleshooting for a while since I’m not truly a developer. I have some minor experience with programming. So if you can imagine a basic cart drawer, with an upsell item, an add to cart button, etc, but the quantity buttons and the trash icon (remove item) buttons in cart are not updating properly, the carts estimated total is actually handling fine. I don’t know how to get the event listeners to properly update the new cart information. I’ve been relying heavily on chatGPT. But it’s not quite where it needs to be to help troubleshoot an issue even when provided the exact code. I can provide code in a comment.