mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 11:36:39 +02:00
💄 Minor cosmetic change on get-parents fn.
This commit is contained in:
parent
07a0f67b32
commit
b96ad5b37f
1 changed files with 2 additions and 3 deletions
|
@ -137,9 +137,8 @@
|
||||||
|
|
||||||
(defn get-parents
|
(defn get-parents
|
||||||
[shape-id objects]
|
[shape-id objects]
|
||||||
(let [{:keys [parent-id]} (get objects shape-id)]
|
(when-let [parent-id (->> shape-id (get objects) :parent-id)]
|
||||||
(when parent-id
|
(lazy-seq (cons parent-id (get-parents parent-id objects)))))
|
||||||
(lazy-seq (cons parent-id (get-parents parent-id objects))))))
|
|
||||||
|
|
||||||
(defn get-frame
|
(defn get-frame
|
||||||
"Get the frame that contains the shape. If the shape is already a frame, get itself."
|
"Get the frame that contains the shape. If the shape is already a frame, get itself."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue