Skip to content

Commit 5fdeb1e

Browse files
authored
Merge pull request #33 from anthturner/fix-multi-obj-render
Fix version, multi-object render in CLI
2 parents 88cae33 + 8f8ac0b commit 5fdeb1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

UniFiSharp.CLI/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace UniFiSharp.CLI
66
{
77
internal class Program
88
{
9-
private static string Version => "v1.5.0";
9+
private static string Version => "v1.5.1";
1010
internal static bool Quiet { get; private set; } = false;
1111
internal static CommandApp App { get; private set; } = new CommandApp();
1212
static void Main(string[] args)

UniFiSharp.CLI/TableGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal IRenderable GenerateMultipleObjectListTable<TEnumerated>(IEnumerable<TE
1616
{
1717
if (data == null || !data.Any()) return new Text("<No Data>");
1818

19-
var properties = (data as IJsonObject).GetVisibleProperties(Levels.Minimal);
19+
var properties = data.Cast<IJsonObject>().First().GetVisibleProperties(Levels.Minimal);
2020

2121
var tbl = new Table().AddColumns(
2222
properties.Select(p => new TableColumn(p.GetPropertyName()))

0 commit comments

Comments
 (0)