Fixed bug with editing manual entries.

This commit is contained in:
Daniel Wathen
2023-01-11 12:52:21 -07:00
parent f23c7136c0
commit 7bd530e72b
3 changed files with 5 additions and 5 deletions

View File

@ -160,7 +160,7 @@
@for (int i = 20; i < 80; i++)
{
string isMatching = "";
string[] bottleChanges = Model.BottleChanges.Split(',');
string[] bottleChanges = !string.IsNullOrEmpty(Model.BottleChanges) ? Model.BottleChanges.Split(',') : new string[0];
for (int j = 0; j < bottleChanges.Length; j++)
{
@ -191,7 +191,7 @@
@for (int i = 20; i < 80; i++)
{
string isMatching = "";
string[] dailyPartChanges = Model.DailyPartChanges.Split(',');
string[] dailyPartChanges = !string.IsNullOrEmpty(Model.DailyPartChanges) ? Model.DailyPartChanges.Split(',') : new string[0];
for (int j = 0; j < dailyPartChanges.Length; j++)
{
@ -222,7 +222,7 @@
@for (int i = 20; i < 80; i++)
{
string isMatching = "";
string[] weeklyPartChanges = Model.WeeklyPartChanges.Split(',');
string[] weeklyPartChanges = !string.IsNullOrEmpty(Model.WeeklyPartChanges) ? Model.WeeklyPartChanges.Split(',') : new string[0];
for (int j = 0; j < weeklyPartChanges.Length; j++)
{