From e2d7105624d8d9fb1878c944e9972b1f68a3f417 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 29 Feb 2024 09:56:20 +0100 Subject: [PATCH] :zap: Add nano optimization to `get-path-id` function Mainly change get-in for dm/get-in macro --- frontend/src/app/main/data/workspace/path/state.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace/path/state.cljs b/frontend/src/app/main/data/workspace/path/state.cljs index 923c34029..77d3e42cb 100644 --- a/frontend/src/app/main/data/workspace/path/state.cljs +++ b/frontend/src/app/main/data/workspace/path/state.cljs @@ -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]