mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
🔥 Remove unused lenses
This commit is contained in:
parent
c90c016ae5
commit
cd6a3fd1bb
2 changed files with 3 additions and 9 deletions
|
@ -618,13 +618,6 @@
|
|||
[id]
|
||||
(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
|
||||
(l/derived :workspace-preview-blend st/state))
|
||||
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
:data local})))
|
||||
(let [viewer-data (deref refs/viewer-data)
|
||||
local (get-in viewer-data [:file :data])
|
||||
id (deref refs/current-file-id)
|
||||
libraries (:libraries viewer-data)]
|
||||
id (get local :id)
|
||||
libraries (:libraries viewer-data)]
|
||||
(-> libraries
|
||||
(assoc id {:id id
|
||||
:data local})))))
|
||||
|
@ -48,6 +48,7 @@
|
|||
objects (or objects (:objects page))
|
||||
shapes (or shapes
|
||||
(resolve-shapes objects selected))
|
||||
|
||||
first-shape (first shapes)
|
||||
page-id (or page-id (:id page))
|
||||
file-id (or file-id (:id file))
|
||||
|
|
Loading…
Reference in a new issue