@@ -266,7 +266,8 @@ var app = new Vue({ | |||
this.countActivePointsSale = 0; | |||
this.setIdActivePointSale(0); | |||
for (var i = 0; i < this.pointsSale.length; i++) { | |||
if (this.pointsSale[i].pointSaleDistribution[0].delivery == 1) { | |||
if (this.pointsSale[i].pointSaleDistribution | |||
&& this.pointsSale[i].pointSaleDistribution[0].delivery == 1) { | |||
this.countActivePointsSale++; | |||
this.setIdActivePointSale(this.pointsSale[i].id); | |||
} |