New-UDTable onrowstyle

Product: PowerShell Universal
Version: 4.2.12

Hello,
could anyone point me in right direction: I want to color the rows of my table depending on some row property value . what i dont know is how to access/check row.property value, am i doing this correctly ?

$Pages = @()
$Pages += New-UDPage -Name ‘Dashboard’ -Content {
New-UDTable -Id ‘customColumnsTable2’ -Data $Data -ShowSearch -ShowSelection -OnRowStyle {
if ($eventdata.PasswordExpirationRemainingDays -lt 80) { @{background = ‘red’}} else {}
}
New-UDButton -Text “GET Rows” -OnClick {
$value = Get-UDElement -Id “customColumnsTable2”
$tmsg = 'Ticket created for user '+$value.selectedRows.name
Show-UDToast -Message $tmsg
}
}

I have no idea why the above sometimes work, and sometimes i get this error:

Error

Minified React error #31; visit Minified React error #31 – React for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

And below this error i still see my button.

Could somebody tell me if this is the correct way ?
-OnRowStyle {
if ($eventdata.PasswordExpirationRemainingDays -lt 80) { @{background = ‘red’}} else {}
}

So the $eventdata would be in case of a table the ‘current being processed row’, where its properties are the column names. I have a column PasswordExpirationRemainingDays in my data table which is a number. any idea what i am doing wrong ? This does sometimes work though i got no idea why is that.