mirror of
https://github.com/penpot/penpot.git
synced 2025-01-27 00:49:28 -05:00
🐛 Fix problem with nil children
This commit is contained in:
parent
844634e8c8
commit
ff72a9ce70
1 changed files with 14 additions and 13 deletions
|
@ -24,6 +24,7 @@
|
|||
;; FIXME: revisit this:
|
||||
(defn propagate-wrapper-styles-child
|
||||
[child wrapper-props]
|
||||
(when (some? child)
|
||||
(let [child-props-childs
|
||||
(-> (obj/get child "props")
|
||||
(obj/clone)
|
||||
|
@ -39,7 +40,7 @@
|
|||
(obj/set! "childs" child-props-childs))]
|
||||
|
||||
(-> (obj/clone child)
|
||||
(obj/set! "props" child-props))))
|
||||
(obj/set! "props" child-props)))))
|
||||
|
||||
(defn propagate-wrapper-styles
|
||||
([children wrapper-props]
|
||||
|
|
Loading…
Add table
Reference in a new issue