From 368f75f02542be9199ef0480c09494d8fbc90f8b Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Tue, 22 Feb 2022 10:26:46 +0100 Subject: [PATCH] Auto select Wishlist item --- src/assets/js/default.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/assets/js/default.js b/src/assets/js/default.js index 94f8d8dc..4ba2b327 100644 --- a/src/assets/js/default.js +++ b/src/assets/js/default.js @@ -169,6 +169,10 @@ function wishlistRefresh() { if (urlParams.has('wishlist')) { $('.ui.dropdown.wishlists').dropdown('set selected', urlParams.get('wishlist')); + } else { + if (response.results[0]) { + $('.ui.dropdown.wishlists').dropdown('set selected', response.results[0].value); + } } }, onFailure: function(response, element, xhr) {