|
|
@@ -1057,7 +1057,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
};
|
|
|
|
|
|
$scope.isValid = function(item, withSteps) {
|
|
|
- var bool = item.replies && item.replies[0].price > 0;
|
|
|
+ var bool = item.leadtime && item.replies && item.replies[0].price > 0;
|
|
|
if(!withSteps || !bool)
|
|
|
return bool;
|
|
|
angular.forEach(item.replies, function(r, i){
|
|
|
@@ -1152,7 +1152,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
};
|
|
|
|
|
|
$scope.isValid = function(item, withSteps) {
|
|
|
- var bool = item.replies && item.replies[0].price > 0;
|
|
|
+ var bool = item.leadtime && item.replies && item.replies[0].price > 0;
|
|
|
if(!withSteps || !bool)
|
|
|
return bool;
|
|
|
angular.forEach(item.replies, function(r, i){
|