🐛 Normalize toast HTML prop to boolean

Ensure toast components always receive a boolean `is-html` prop so nil or
truthy notification values do not violate the Rumext schema.

AI-assisted-by: gpt-5.6-luna
This commit is contained in:
Andrey Antukh 2026-08-25 13:41:22 +00:00
parent b79680eeb7
commit 85a68ea3b2

View File

@ -35,7 +35,7 @@
[:> toast*
{:level (or (:level notification) :info)
:type (:type notification)
:is-html (:is-html notification)
:is-html (boolean (:is-html notification))
:detail (:detail notification)
:on-close on-close}
content]
@ -58,6 +58,6 @@
[:> toast*
{:level (or (:level notification) :info)
:type (:type notification)
:is-html (:is-html notification)
:is-html (boolean (:is-html notification))
:detail (:detail notification)
:on-close on-close} content]))))