Fix state URL in cart when items are checked for charting.

This commit is contained in:
Mario Zechner 2023-07-18 21:04:15 +02:00
parent 7e527f2f34
commit dbdf6e2f38

View File

@ -205,6 +205,9 @@ function loadCart() {
for (const id of d.split(";")) {
cart.items.lookup[id].chart = true;
}
const url = stateToUrl();
history.pushState({}, null, url);
cartHeader.render();
}
cartList.model = cartFilter.model = cart;
productsList.model = productsFilter.model = models.items;