0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00

Merge pull request #2454 from penpot/superalex-fix-assertion-error-trying-to-move-board

🐛 Fix assertion error trying to move board if path tool selected
This commit is contained in:
Eva Marco 2022-10-17 12:10:41 +02:00 committed by GitHub
commit e2f6274ff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -44,6 +44,7 @@
- Fix boards grouped shouldn't show the title [Taiga #4251](https://tree.taiga.io/project/penpot/issue/4251)
- Fix gradient handlers are under resize handlers[Taiga #4298](https://tree.taiga.io/project/penpot/issue/4298)
- Fix grid not syncing immediately in multiuser [Taiga #4339](https://tree.taiga.io/project/penpot/issue/4339)
- Fix assertions error when trying to move board if Path tool selected [Taiga #4248](https://tree.taiga.io/project/penpot/issue/4248)
### :arrow_up: Deps updates
### :heart: Community contributions by (Thank you!)
@ -59,6 +60,7 @@
- Fix copied & pasted layer is not visible [Taiga #4283](https://tree.taiga.io/project/penpot/issue/4283)
- Fix notification to newsletter is shown in all cases [Taiga #4367](https://tree.taiga.io/project/penpot/issue/4367)
- Fix comments section is not scrolling by mouse wheel [Taiga #4305](https://tree.taiga.io/project/penpot/issue/4305)
## 1.15.4-beta
### :bug: Bugs fixed

View file

@ -204,7 +204,8 @@
(watch [_ state stream]
(let [id (get-in state [:workspace-local :edition])
current-move (get-in state [:workspace-local :edit-path id :current-move])]
(if (= same-event current-move)
;; id can be null if we just selected the tool but we didn't start drawing
(if (and id (= same-event current-move))
(let [points (get-in state [:workspace-local :edit-path id :selected-points] #{})
move-events (->> stream