+ wishlist item is active fix
This commit is contained in:
@@ -45,6 +45,8 @@ const hoveredCancelReservationButton = reactive(new Map<string, boolean>())
|
|||||||
const fetchWishlist = async () => {
|
const fetchWishlist = async () => {
|
||||||
await getWishlist(route.params.id)
|
await getWishlist(route.params.id)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
activeItems.value = []
|
||||||
|
disabledItems.value = []
|
||||||
wishlist.value = res
|
wishlist.value = res
|
||||||
wishlist.value?.items.forEach((item: WishlistItem) => {
|
wishlist.value?.items.forEach((item: WishlistItem) => {
|
||||||
selectedImage.set(item.id, item.images[0])
|
selectedImage.set(item.id, item.images[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user