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:
parent
26ab7f83fe
commit
e2d7105624
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue