0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 07:11:32 -05:00

Make the dm/get-prop work also with non static fields

This commit is contained in:
Andrey Antukh 2024-01-05 13:34:13 +01:00
parent 260879791b
commit c53e476ba2

View file

@ -121,7 +121,7 @@
directly on CLJS, on CLJ works as get."
[obj prop]
(if (:ns &env)
(list 'js* (c/str "(~{}?." (str/snake prop) ")") obj)
(list 'js* (c/str "(~{}?." (str/snake prop) "?? ~{})") obj (list 'cljs.core/get obj prop))
(list `c/get obj prop)))
(def ^:dynamic *assert-context* nil)