0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-15 11:38:24 -05:00

Properly trigger page update on shape movement.

This commit is contained in:
Andrey Antukh 2016-04-13 20:15:07 +03:00
parent e40632cca6
commit 5624882ce2
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -43,6 +43,7 @@
"Just updates in place the shape."
[{:keys [id] :as shape}]
(reify
udp/IPageUpdate
rs/UpdateEvent
(-apply-update [_ state]
(update-in state [:shapes-by-id id] merge shape))))