Skip to content

Commit

Permalink
Revert "Fix params"
Browse files Browse the repository at this point in the history
This reverts commit dfa4140.
  • Loading branch information
ShaunLawrie committed Sep 23, 2024
1 parent dfa4140 commit 7aaa203
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit 7aaa203

Please sign in to comment.