mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 13:18:29 +00:00
⚡ Add nano optimization to get-path-id function
Mainly change get-in for dm/get-in macro
This commit is contained in:
parent
26ab7f83fe
commit
e2d7105624
@ -46,8 +46,8 @@
|
||||
(defn get-path-id
|
||||
"Retrieves the currently editing path id"
|
||||
[state]
|
||||
(or (get-in state [:workspace-local :edition])
|
||||
(get-in state [:workspace-drawing :object :id])))
|
||||
(or (dm/get-in state [:workspace-local :edition])
|
||||
(dm/get-in state [:workspace-drawing :object :id])))
|
||||
|
||||
(defn get-path-location
|
||||
[state & ks]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user