0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-07 15:39:42 -05:00

🔥 Remove unused lenses

This commit is contained in:
Andrey Antukh 2024-12-10 14:02:42 +01:00
parent c90c016ae5
commit cd6a3fd1bb
2 changed files with 3 additions and 9 deletions

View file

@ -618,13 +618,6 @@
[id] [id]
(l/derived #(get % id) workspace-grid-edition)) (l/derived #(get % id) workspace-grid-edition))
;; FIXME: remove
(def current-file-id
(l/derived :current-file-id st/state))
(def current-project-id
(l/derived :current-project-id st/state))
(def workspace-preview-blend (def workspace-preview-blend
(l/derived :workspace-preview-blend st/state)) (l/derived :workspace-preview-blend st/state))

View file

@ -35,8 +35,8 @@
:data local}))) :data local})))
(let [viewer-data (deref refs/viewer-data) (let [viewer-data (deref refs/viewer-data)
local (get-in viewer-data [:file :data]) local (get-in viewer-data [:file :data])
id (deref refs/current-file-id) id (get local :id)
libraries (:libraries viewer-data)] libraries (:libraries viewer-data)]
(-> libraries (-> libraries
(assoc id {:id id (assoc id {:id id
:data local}))))) :data local})))))
@ -48,6 +48,7 @@
objects (or objects (:objects page)) objects (or objects (:objects page))
shapes (or shapes shapes (or shapes
(resolve-shapes objects selected)) (resolve-shapes objects selected))
first-shape (first shapes) first-shape (first shapes)
page-id (or page-id (:id page)) page-id (or page-id (:id page))
file-id (or file-id (:id file)) file-id (or file-id (:id file))