Skip to content

Commit

Permalink
Fixing special treatment for single column table named Value
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-joyle committed Feb 28, 2024
1 parent a3ddc20 commit f7f4a47
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ private string FormatStandardTable(TableValue table, HashSet<string> selectedFie
}

// special treatment for single column table named Value
else if (table.Rows.Count() > 0 &&
table.Rows.First().Value?.Fields.Count() == 1 &&
table.Rows.First().Value?.Fields.First().Name == "Value")
else if (table.Rows.Count() > 0 &&
table.Type.FieldNames.Count() == 1 &&
table.Type.FieldNames.First() == "Value")
{
var separator = string.Empty;
resultString = new StringBuilder("[");
Expand Down

0 comments on commit f7f4a47

Please sign in to comment.