Merge pull request #1826 from penpot/superalex-internal-error-when-hoverin-over-shape

🐛 Internal error when hoverin over shape
This commit is contained in:
Eva Marco 2022-04-21 13:31:37 +02:00 committed by GitHub
commit 38deacdf31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -50,7 +50,7 @@
id (get-in state [:workspace-local :edition])
content (st/get-path state :content)
selected-point? #(gsh/has-point-rect? selrect %)
selected-points (get-in state [:workspace-local :edit-path id :selected-points])
selected-points (or (get-in state [:workspace-local :edit-path id :selected-points]) #{})
positions (into (if shift? selected-points #{})
(comp (filter #(not (= (:command %) :close-path)))
(map (comp gpt/point :params))