mirror of
https://github.com/penpot/penpot.git
synced 2026-03-19 00:43:52 +00:00
⚡ Add nano optimization to get-path-id function
Mainly change get-in for dm/get-in macro
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user