mirror of
https://github.com/penpot/penpot.git
synced 2026-08-27 15:19:49 +00:00
📎 Fix issues from previous merge
This commit is contained in:
parent
44f6ec7a24
commit
c3688d6ab0
@ -96,7 +96,7 @@
|
|||||||
(assert (uuid? id) "expected valid uuid for `id`")
|
(assert (uuid? id) "expected valid uuid for `id`")
|
||||||
(ptk/reify ::restore-version
|
(ptk/reify ::restore-version
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ _ _]
|
(watch [_ state _]
|
||||||
(let [file-id (:current-file-id state)]
|
(let [file-id (:current-file-id state)]
|
||||||
(rx/concat
|
(rx/concat
|
||||||
(rx/of ::dwp/force-persist
|
(rx/of ::dwp/force-persist
|
||||||
@ -106,7 +106,7 @@
|
|||||||
(rx/take 1)
|
(rx/take 1)
|
||||||
(rx/mapcat #(rp/cmd! :restore-file-snapshot {:file-id file-id :id id}))
|
(rx/mapcat #(rp/cmd! :restore-file-snapshot {:file-id file-id :id id}))
|
||||||
(rx/tap #(th/clear-queue!))
|
(rx/tap #(th/clear-queue!))
|
||||||
(rx/map #(dw/initialize-file project-id file-id)))
|
(rx/map #(dw/initialize-workspace file-id)))
|
||||||
(case origin
|
(case origin
|
||||||
:version
|
:version
|
||||||
(rx/of (ptk/event ::ev/event {::ev/name "restore-pin-version"}))
|
(rx/of (ptk/event ::ev/event {::ev/name "restore-pin-version"}))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user