0
Fork 0
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:
Andrey Antukh 2022-02-14 12:42:35 +01:00 committed by Andrés Moya
parent 420ece7005
commit ef9339f6f1
2 changed files with 13 additions and 3 deletions

View file

@ -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

View file

@ -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 []))
[]))