Hey I have a do loop in my udmodal for a progress bar. But when using the Do loop the Modal never shows. the console log gives the following error:
PS: One or more errors occurred.
Any thoughts?
code snippet:
Show-UDModal -Content {
New-UDTypography -Text “Waiting for session to end”
New-UDProgress -Circular -Color Blue
Do{
$issessionlive = if (Get-BrokerSession -AdminAddress AdminAddress | where {_.sessionkey -eq $item.SessionKey}) {$true}else{false}
} while ($issessionlive -eq $true)
}