Minor fixes

This commit is contained in:
Lucio Maranta
2019-02-11 17:02:31 +01:00
parent e734530870
commit bc81d9fe25
3 changed files with 10 additions and 7 deletions
@@ -170,9 +170,12 @@ namespace Step.Database.Controllers
.Where(x => ids.Contains(x.Id))
.ToList();
// Find max between families
shank.MaxRight = families.Max(x => x.RightSize);
shank.MaxLeft = families.Max(x => x.LeftSize);
if (families.Count() > 0)
{
// Find max between families
shank.MaxRight = families.Max(x => x.RightSize);
shank.MaxLeft = families.Max(x => x.LeftSize);
}
}
return dtoShanks;