mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 04:19:08 -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
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 1.11.2-beta
|
||||||
|
|
||||||
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
|
- Fix issue on handling empty content on boolean shapes.
|
||||||
|
|
||||||
|
|
||||||
## 1.11.1-beta
|
## 1.11.1-beta
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
|
@ -326,6 +326,9 @@
|
||||||
[bool-type contents]
|
[bool-type contents]
|
||||||
;; We apply the boolean operation in to each pair and the result to the next
|
;; We apply the boolean operation in to each pair and the result to the next
|
||||||
;; element
|
;; element
|
||||||
|
(if (seq contents)
|
||||||
(->> contents
|
(->> contents
|
||||||
(reduce (partial content-bool-pair bool-type))
|
(reduce (partial content-bool-pair bool-type))
|
||||||
(into [])))
|
(into []))
|
||||||
|
[]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue