Fixed "The model item passed into the ViewDataDictionary is of type 'Smartstore.Web.Models.Cart.ShoppingCartModel', but this ViewDataDictionary instance requires a model item of type 'Smartstore.Web.Models.Cart.WishlistModel'."

This commit is contained in:
Michael Herzog 2022-08-12 14:44:31 +02:00
parent 29a5c0d9f9
commit 0837df2213

View File

@ -810,7 +810,8 @@ namespace Smartstore.Web.Controllers
}
var wishlist = await _shoppingCartService.GetCartAsync(pageCustomer, ShoppingCartType.Wishlist, storeId);
var model = await wishlist.MapAsync(!customerGuid.HasValue);
var model = new WishlistModel();
await wishlist.MapAsync(model, !customerGuid.HasValue);
NotifyInfo(T("Products.SelectProducts"), true);