Fix saved wishlist not being marked as saved on load

This commit is contained in:
grandeljay 2022-06-21 08:21:02 +02:00
parent 2c03ffd15b
commit 5901efacb8

View file

@ -115,11 +115,11 @@ $(function() {
.then(handleFetchError)
.then(handleFetchResponse)
.then(function(response) {
var wishlists = response.data;
var wishlists = response.data;
var buttonSave = $('.button.save');
wishlists.forEach(wishlist => {
if (wishlist.hash == $_GET.wishlist) {
if (wishlist.hash == $_GET.hash) {
button_set_saved_state(buttonSave);
return;
}