mirror of
https://github.com/penpot/penpot.git
synced 2026-08-25 22:29:03 +00:00
🐛 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:
parent
b79680eeb7
commit
85a68ea3b2
@ -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]))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user