mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 10:46:10 +02:00
✨ Sanitize plugins uuid parsing
This commit is contained in:
parent
a7c1f7ba69
commit
38e5c161e7
5 changed files with 17 additions and 8 deletions
|
@ -283,8 +283,7 @@
|
|||
(fn [event]
|
||||
(let [team-id (-> (dom/get-current-target event)
|
||||
(dom/get-data "value")
|
||||
(uuid/parse))]
|
||||
|
||||
(uuid/uuid))]
|
||||
(st/emit! (dcm/go-to-dashboard-recent :team-id team-id)))))
|
||||
|
||||
handle-select-default
|
||||
|
|
|
@ -969,7 +969,7 @@
|
|||
|
||||
:else
|
||||
(let [file-id (:current-file-id @st/state)
|
||||
library-id (uuid/uuid library-id)]
|
||||
library-id (uuid/parse library-id)]
|
||||
(->> st/stream
|
||||
(rx/filter (ptk/type? ::dwl/attach-library-finished))
|
||||
(rx/take 1)
|
||||
|
|
|
@ -160,7 +160,7 @@
|
|||
(u/display-not-valid :getShapeById shape-id)
|
||||
|
||||
:else
|
||||
(let [shape-id (uuid/uuid shape-id)
|
||||
(let [shape-id (uuid/parse shape-id)
|
||||
shape (u/locate-shape file-id id shape-id)]
|
||||
(when (some? shape)
|
||||
(shape/shape-proxy plugin-id file-id id shape-id)))))
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
(defn parse-id
|
||||
[id]
|
||||
(when id (uuid/uuid id)))
|
||||
(when id (uuid/parse id)))
|
||||
|
||||
(defn parse-keyword
|
||||
[kw]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue