mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 02:28:18 -05:00
✨ Small improvement
This commit is contained in:
parent
2b978777d7
commit
9367788898
1 changed files with 2 additions and 3 deletions
|
@ -567,9 +567,8 @@
|
||||||
(defn start-component
|
(defn start-component
|
||||||
([file data] (start-component file data :group))
|
([file data] (start-component file data :group))
|
||||||
([file data root-type]
|
([file data root-type]
|
||||||
(let [selrect (if (and (:x data) (:y data) (:width data) (:height data))
|
(let [selrect (or (gsh/make-selrect (:x data) (:y data) (:width data) (:height data))
|
||||||
(gsh/make-selrect (:x data) (:y data) (:width data) (:height data))
|
cts/empty-selrect)
|
||||||
cts/empty-selrect)
|
|
||||||
name (:name data)
|
name (:name data)
|
||||||
path (:path data)
|
path (:path data)
|
||||||
main-instance-id (:main-instance-id data)
|
main-instance-id (:main-instance-id data)
|
||||||
|
|
Loading…
Add table
Reference in a new issue