0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-09 00:28:20 -05:00

Small improvement

This commit is contained in:
Andrés Moya 2023-01-20 11:49:22 +01:00 committed by Alonso Torres
parent 2b978777d7
commit 9367788898

View file

@ -567,9 +567,8 @@
(defn start-component
([file data] (start-component file data :group))
([file data root-type]
(let [selrect (if (and (:x data) (:y data) (:width data) (:height data))
(gsh/make-selrect (:x data) (:y data) (:width data) (:height data))
cts/empty-selrect)
(let [selrect (or (gsh/make-selrect (:x data) (:y data) (:width data) (:height data))
cts/empty-selrect)
name (:name data)
path (:path data)
main-instance-id (:main-instance-id data)