🐛 Minor fix on commit-snapshot handler.

This commit is contained in:
Andrey Antukh 2020-01-28 13:02:30 +01:00
parent 2f589a49e9
commit a0df97a2e5

View file

@ -164,8 +164,8 @@
(ptk/reify ::handle-page-snapshot (ptk/reify ::handle-page-snapshot
ptk/WatchEvent ptk/WatchEvent
(watch [_ state stream] (watch [_ state stream]
(let [local (:workspace-local state)] (let [page-id' (get-in state [:workspace-page :id])]
(when (= (:page-id local) page-id) (when (= page-id page-id')
(rx/of (shapes-changes-commited msg))))))) (rx/of (shapes-changes-commited msg)))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;