0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

Add nano optimization to get-path-id function

Mainly change get-in for dm/get-in macro
This commit is contained in:
Andrey Antukh 2024-02-29 09:56:20 +01:00
parent 26ab7f83fe
commit e2d7105624

View file

@ -46,8 +46,8 @@
(defn get-path-id (defn get-path-id
"Retrieves the currently editing path id" "Retrieves the currently editing path id"
[state] [state]
(or (get-in state [:workspace-local :edition]) (or (dm/get-in state [:workspace-local :edition])
(get-in state [:workspace-drawing :object :id]))) (dm/get-in state [:workspace-drawing :object :id])))
(defn get-path-location (defn get-path-location
[state & ks] [state & ks]