Fix non-functioning code

This commit is contained in:
Manuel Thalmann 2023-07-19 00:16:13 +02:00
parent b2c3c10f33
commit 0aa49cd6d4

View file

@ -33,7 +33,7 @@ Export-StartLayout $startLayoutFile;
$startLayout = Get-Content "$startLayoutFile" | ConvertFrom-Json
$originalProperty = "pinnedList";
$newLayout = $startLayout[$originalProperty] | Where-Object {
$newLayout = $startLayout | Select-Object -ExpandProperty $originalProperty | Where-Object {
return -not (
($_.desktopAppLink -like "*Microsoft Edge*") -or
[System.Linq.Enumerable]::Any(