Product: PowerShell Universal
Version: 2026.1.3
BUG
Hey everyone,
Found a bug in v2026.1.3 with -FilterType autocomplete (and -FilterType select) on a New-UDTableColumn when used inside a New-UDDynamic with -LoadData.
The error:
TypeError: Cannot read properties of undefined (reading ‘forEach’)
at filters.js:209:19
at Object.autocomplete (filters.js:207:16)
at Filter (utilities.js:101:62)
at dynamic.jsx:17 ← PSU’s own Dynamic component
To reproduce:
Apply the autocomplete filter and select a value
Click any button that calls Sync-UDElement on the parent Dynamic
React crashes
Minimal repro — paste this into a new page:
$Pages += New-UDPage -Name ‘Bug Repro’ -Url ‘bug-repro’ -Content {
$Cache:BugReproData = @(
[PSCustomObject]@{ COMPANY_NAME = 'Contoso Ltd'; NAME = 'John Smith'; ID = '001' }
[PSCustomObject]@{ COMPANY_NAME = 'Contoso Ltd'; NAME = 'Jane Doe'; ID = '002' }
[PSCustomObject]@{ COMPANY_NAME = 'Fabrikam Inc'; NAME = 'Bob Jones'; ID = '003' }
[PSCustomObject]@{ COMPANY_NAME = 'Fabrikam Inc'; NAME = 'Alice Brown'; ID = '004' }
[PSCustomObject]@{ COMPANY_NAME = 'Northwind Corp'; NAME = 'Charlie Day'; ID = '005' }
)
# Clicking this while a filter is active triggers the crash
New-UDButton -Text 'Sync (triggers crash if filter active)' -OnClick {
Sync-UDElement -Id 'dynTable'
}
New-UDDynamic -Id 'dynTable' -Content {
New-UDTable -Id 'tblRepro' -ShowFilter -ShowSelection -Dense -LoadData {
$TableData = ConvertFrom-Json $Body
$allFilters = @($TableData.filters)
$filterCompany = $allFilters | Where-Object { $_.id -eq 'company_name' }
$filteredData = @($Cache:BugReproData)
if ($filterCompany -and ![string]::IsNullOrEmpty($filterCompany.value)) {
$filteredData = @($filteredData | Where-Object {
$_.COMPANY_NAME -eq $filterCompany.value
})
}
$filteredData | Out-UDTableData `
-Page $TableData.page `
-TotalCount $filteredData.Count `
-Properties $TableData.properties
} -Columns @(
# ← Change to -FilterType text to confirm the bug is filter-type specific
New-UDTableColumn -Property 'COMPANY_NAME' -Title 'Company Name' `
-ShowFilter -FilterType autocomplete
New-UDTableColumn -Property 'NAME' -Title 'Name'
New-UDTableColumn -Property 'ID' -Title 'ID'
)
}
}
Notes:
Works fine with no filter active when Sync fires
Works fine with -FilterType text
Passing explicit -Options to the column does not help
Both autocomplete and select filter types are affected
Workaround (until fixed):
New-UDTableColumn -Property ‘COMPANY_NAME’ -Title ‘Company Name’ `
-ShowFilter -FilterType text
Has anyone else hit this? Hoping the team can fix the unguarded .forEach() call in filters.js:209.