AdaptiveCards data property does not handle null values properly #1343
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-replied-to
Indicates that the team has replied to the issue reported by the customer. Do not delete.
customer-reported
Issue is created by anyone that is not a collaborator in the repository.
Describe the bug
if dialog.config.Site is null, the renderer behaves as if the given object has no .Site at all and just outputs "${$root.Site}".
Also, This defeats the purpose of coalesce function which REQUIRES the value to be null (to use 2nd arg), not just an empty string.
Version
1.3
To Reproduce
3a. use ${$root.Site} somewhere in adaptive card
3b. use ${coalesce($root.Site, "default")}
Expected behavior
3a. rendered text is "", or "null", or "(null)". NOT "${$root.Site}"
3b. rendered text is "default"
The text was updated successfully, but these errors were encountered: