mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 09:08:31 -05:00
Disable naming of render functions in defc and defcs macros.
This has caused some unexpected behavior with recursive components.
This commit is contained in:
parent
f82c534df4
commit
447d484f7b
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@
|
|||
4 (let [sym (:name r)
|
||||
args (:args r)
|
||||
func (if (map? v)
|
||||
`(fn ~sym ~args ~v ~(s/compile-html `(do ~@n)))
|
||||
`(fn ~sym ~args ~(s/compile-html `(do ~@(cons v n)))))]
|
||||
`(fn ~args ~v ~(s/compile-html `(do ~@n)))
|
||||
`(fn ~args ~(s/compile-html `(do ~@(cons v n)))))]
|
||||
[func (:doc r) (:mixins r) sym]))))
|
||||
|
||||
(defmacro defc
|
||||
|
|
Loading…
Add table
Reference in a new issue