mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
🐛 Fix unexpected exception on handling empty state on boolean calc
This commit is contained in:
parent
420ece7005
commit
ef9339f6f1
2 changed files with 13 additions and 3 deletions
|
@ -1,5 +1,12 @@
|
|||
# CHANGELOG
|
||||
|
||||
## 1.11.2-beta
|
||||
|
||||
### :bug: Bugs fixed
|
||||
|
||||
- Fix issue on handling empty content on boolean shapes.
|
||||
|
||||
|
||||
## 1.11.1-beta
|
||||
|
||||
### :bug: Bugs fixed
|
||||
|
|
|
@ -326,6 +326,9 @@
|
|||
[bool-type contents]
|
||||
;; We apply the boolean operation in to each pair and the result to the next
|
||||
;; element
|
||||
(->> contents
|
||||
(reduce (partial content-bool-pair bool-type))
|
||||
(into [])))
|
||||
(if (seq contents)
|
||||
(->> contents
|
||||
(reduce (partial content-bool-pair bool-type))
|
||||
(into []))
|
||||
[]))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue