0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 02:28:18 -05:00

🐛 Fix problem with boolean and children objects

This commit is contained in:
alonso.torres 2022-03-28 17:03:04 +02:00 committed by Andrés Moya
parent 61c111d5ae
commit af22fee0c1
3 changed files with 6 additions and 6 deletions

View file

@ -22,7 +22,7 @@
(def dissoc-attrs
[:x :y :width :height
:rx :ry :r1 :r2 :r3 :r4
:metadata :shapes])
:metadata])
(def allowed-transform-types
#{:rect
@ -199,7 +199,6 @@
(map #(convert-to-path % objects)))
bool-type (:bool-type shape)
content (pb/content-bool bool-type (mapv :content children))]
(-> shape
(assoc :type :path)
(assoc :content content)

View file

@ -104,8 +104,9 @@
(update-in state path cp/process-changes redo-changes false)
(catch :default e
(vreset! error e)
(catch :default err
(log/error :js/error err)
(vreset! error err)
state))))
ptk/WatchEvent

View file

@ -30,7 +30,7 @@
changes
(-> (pcb/empty-changes it page-id)
(pcb/with-objects objects)
(pcb/remove-objects children-ids)
(pcb/update-shapes selected #(upsp/convert-to-path % objects)))]
(pcb/update-shapes selected #(upsp/convert-to-path % objects))
(pcb/remove-objects children-ids))]
(rx/of (dch/commit-changes changes))))))