diff --git a/server/AyaNova/biz/ObjectFields.cs b/server/AyaNova/biz/ObjectFields.cs index 4e99bf02..0b6bc26c 100644 --- a/server/AyaNova/biz/ObjectFields.cs +++ b/server/AyaNova/biz/ObjectFields.cs @@ -163,11 +163,9 @@ namespace AyaNova.Biz { ObjectField o = fields.FirstOrDefault(x => x.Key == s); if (o != null) - {//Here is where we can vet the field name, if it doesn't exist though, for now we'll just ignore it - if (!isFirstColumn) - { - sb.Append(","); - } + {//Here is where we can vet the field name, if it doesn't exist though, for now we'll just ignore those ones + + sb.Append(","); sb.Append("{"); //Build required part of column definition sb.Append($"\"cm\":\"{o.Key}\",\"dt\":{(int)o.DataType}"); @@ -177,7 +175,7 @@ namespace AyaNova.Biz sb.Append($",\"ay\":{(int)o.AyObjectType}"); sb.Append("}"); - isFirstColumn = false; + } } sb.Append("]");