From 7aaa2034b2ed07edc1f46757111552256453e177 Mon Sep 17 00:00:00 2001 From: Shaun Lawrie Date: Mon, 23 Sep 2024 12:55:58 +1200 Subject: [PATCH] Revert "Fix params" This reverts commit dfa41406d085f7177b33cd0f9558fad0551edbb3. --- .../public/formatting/Format-SpectreTable.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 b/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 index e9a56f8..4dc9f63 100644 --- a/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 +++ b/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 @@ -153,9 +153,6 @@ function Format-SpectreTable { 'View' { $FormatTableParams.View = $View } 'Property' { $FormatTableParams.Property = $Property } } - if ($Property.Count -eq 0) { - $FormatTableParams.Property = '*' - } } process { foreach ($entry in $data) { @@ -181,9 +178,9 @@ function Format-SpectreTable { } if ($FormatTableParams.Keys.Count -gt 0) { Write-Debug "Using Format-Table with parameters: $($FormatTableParams.Keys -join ', ')" - $collector = $collector | Format-Table @FormatTableParams + $collector = $collector | Format-Table @FormatTableParams * } else { - $collector = $collector | Format-Table -Property * + $collector = $collector | Format-Table * } if (-Not $collector.shapeInfo) { # scalar array, no header