Fix switching wishlists

This commit is contained in:
grandeljay 2023-02-10 15:43:42 +01:00
parent 5f975b510c
commit 43e5ccba3d

View file

@ -88,7 +88,7 @@ $(function () {
setTimeout(function dropdown_wishlists_api() { setTimeout(function dropdown_wishlists_api() {
var api_is_complete = $('.ui.dropdown.filter.priority').api('was complete'); var api_is_complete = $('.ui.dropdown.filter.priority').api('was complete');
if ('' === $('.wishlist-cards').html() && api_is_complete) { if ($('.ui.column.wishlist > .column').length > 0 && api_is_complete) {
$('.ui.dropdown.filter.priority').api('query'); $('.ui.dropdown.filter.priority').api('query');
setTimeout(dropdown_wishlists_api, 1); setTimeout(dropdown_wishlists_api, 1);