mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 04:36:37 +02:00
🐛 Fix unexpected output on get-page when invalid object-id is provided
This commit is contained in:
parent
159ac92021
commit
ddbc828342
2 changed files with 6 additions and 1 deletions
|
@ -498,7 +498,8 @@
|
|||
other not needed objects removed from the `:objects` data
|
||||
structure."
|
||||
[{:keys [objects] :as page} object-id]
|
||||
(let [objects (cph/get-children-with-self objects object-id)]
|
||||
(let [objects (->> (cph/get-children-with-self objects object-id)
|
||||
(filter some?))]
|
||||
(assoc page :objects (d/index-by :id objects))))
|
||||
|
||||
(defn- prune-thumbnails
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue