0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-01 17:41:50 -05:00

🐛 Fix problem with command

This commit is contained in:
alonso.torres 2021-05-06 21:49:37 +02:00 committed by Andrey Antukh
parent 39066bfee3
commit 9fcddc37f6
2 changed files with 7 additions and 2 deletions

View file

@ -8,6 +8,11 @@
### :boom: Breaking changes
### :heart: Community contributions by (Thank you!)
## 1.5.2-alpha
### :bug: Bugs fixed
- Fix problem with `close-path` command [#917](https://github.com/penpot/penpot/issues/917)
## 1.5.1-alpha

View file

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