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