Fix saved wishlist not being marked as saved on load
This commit is contained in:
parent
2c03ffd15b
commit
5901efacb8
1 changed files with 2 additions and 2 deletions
|
@ -115,11 +115,11 @@ $(function() {
|
||||||
.then(handleFetchError)
|
.then(handleFetchError)
|
||||||
.then(handleFetchResponse)
|
.then(handleFetchResponse)
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
var wishlists = response.data;
|
var wishlists = response.data;
|
||||||
var buttonSave = $('.button.save');
|
var buttonSave = $('.button.save');
|
||||||
|
|
||||||
wishlists.forEach(wishlist => {
|
wishlists.forEach(wishlist => {
|
||||||
if (wishlist.hash == $_GET.wishlist) {
|
if (wishlist.hash == $_GET.hash) {
|
||||||
button_set_saved_state(buttonSave);
|
button_set_saved_state(buttonSave);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue