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

Update page indices on change notifications.

This commit is contained in:
Andrey Antukh 2020-05-16 10:59:36 +02:00
parent 6df0d34e2a
commit f64d1fb8f6

View file

@ -18,6 +18,7 @@
[uxbox.main.repo :as rp] [uxbox.main.repo :as rp]
[uxbox.main.store :as st] [uxbox.main.store :as st]
[uxbox.main.streams :as ms] [uxbox.main.streams :as ms]
[uxbox.main.data.workspace.common :as dwc]
[uxbox.main.data.workspace.persistence :as dwp] [uxbox.main.data.workspace.persistence :as dwp]
[uxbox.util.avatars :as avatars] [uxbox.util.avatars :as avatars]
[uxbox.util.geom.point :as gpt] [uxbox.util.geom.point :as gpt]
@ -169,6 +170,7 @@
(ptk/reify ::handle-page-change (ptk/reify ::handle-page-change
ptk/WatchEvent ptk/WatchEvent
(watch [_ state stream] (watch [_ state stream]
(rx/of (dwp/shapes-changes-persisted msg))))) (rx/of (dwp/shapes-changes-persisted msg)
(dwc/update-page-indices (:page-id msg))))))