0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🐛 Fix unexpected output on get-page when invalid object-id is provided

This commit is contained in:
Andrey Antukh 2023-08-23 11:39:08 +02:00 committed by Alejandro Alonso
parent 159ac92021
commit ddbc828342
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,10 @@
- Navigate up in layer hierarchy with Shift+Enter shortcut [Taiga #5734](https://tree.taiga.io/project/penpot/us/5734) - Navigate up in layer hierarchy with Shift+Enter shortcut [Taiga #5734](https://tree.taiga.io/project/penpot/us/5734)
- Click on the flow tags open viewer with the selected frame [Taiga #5044](https://tree.taiga.io/project/penpot/us/5044) - Click on the flow tags open viewer with the selected frame [Taiga #5044](https://tree.taiga.io/project/penpot/us/5044)
### :bug: Bugs fixed
- Fix unexpected output on get-page rpc method when invalid object-id is provided [Github #3546](https://github.com/penpot/penpot/issues/3546)
## 1.19.1 ## 1.19.1
### :bug: Bugs fixed ### :bug: Bugs fixed

View file

@ -498,7 +498,8 @@
other not needed objects removed from the `:objects` data other not needed objects removed from the `:objects` data
structure." structure."
[{:keys [objects] :as page} object-id] [{: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)))) (assoc page :objects (d/index-by :id objects))))
(defn- prune-thumbnails (defn- prune-thumbnails