0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fix wrong type usage on libraries changes.

This commit is contained in:
Andrey Antukh 2021-05-26 13:31:07 +02:00
parent 897f41bc7a
commit ba211e3cbd

View file

@ -414,7 +414,7 @@
(get component :objects)
update-new-shape)
rchanges (map (fn [obj]
rchanges (mapv (fn [obj]
{:type :add-obj
:id (:id obj)
:page-id page-id
@ -424,7 +424,7 @@
:obj obj})
new-shapes)
uchanges (map (fn [obj]
uchanges (mapv (fn [obj]
{:type :del-obj
:id (:id obj)
:page-id page-id
@ -448,7 +448,7 @@
objects (wsh/lookup-page-objects state page-id)
shapes (cp/get-object-with-children id objects)
rchanges (map (fn [obj]
rchanges (mapv (fn [obj]
{:type :mod-obj
:page-id page-id
:id (:id obj)
@ -472,7 +472,7 @@
:val nil}]})
shapes)
uchanges (map (fn [obj]
uchanges (mapv (fn [obj]
{:type :mod-obj
:page-id page-id
:id (:id obj)