Why does deleting one product also remove another in my cart?

In the cart, there are two products, one with a discount and another without a discount, so when I delete one product, another one is also deleted automatically.