diff --git a/LabelStoreMax/lib/pages/product_detail.dart b/LabelStoreMax/lib/pages/product_detail.dart index a0361e6..2350940 100644 --- a/LabelStoreMax/lib/pages/product_detail.dart +++ b/LabelStoreMax/lib/pages/product_detail.dart @@ -390,7 +390,7 @@ class _ProductDetailState extends State { isManagedStock: _product.manageStock, stockQuantity: _product.stockQuantity, shippingIsTaxable: _product.shippingTaxable, - imageSrc: _product.images.first.src, + imageSrc: _product.images.length == 0 ? "" : _product.images.first.src, total: _product.price); if (_product.type != "simple") {