🐛 Fix problem with hot reload

This commit is contained in:
alonso.torres 2024-05-22 17:23:02 +02:00 committed by Andrey Antukh
parent 9fcb4216b6
commit 85ae3ff6f8
2 changed files with 15 additions and 8 deletions

View file

@ -28,8 +28,9 @@
(findShapes
[_]
;; Returns a lazy (iterable) of all available shapes
(let [page (locate-page $file $id)]
(apply array (sequence (map shape/shape-proxy) (keys (:objects page)))))))
(when (and (some? $file) (some? $id))
(let [page (locate-page $file $id)]
(apply array (sequence (map shape/shape-proxy) (keys (:objects page))))))))
(crc/define-properties!
PageProxy