mirror of
https://github.com/penpot/penpot.git
synced 2025-01-31 19:39:07 -05:00
📎 Fix issues from previous merge
This commit is contained in:
parent
44f6ec7a24
commit
c3688d6ab0
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@
|
|||
(assert (uuid? id) "expected valid uuid for `id`")
|
||||
(ptk/reify ::restore-version
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
(watch [_ state _]
|
||||
(let [file-id (:current-file-id state)]
|
||||
(rx/concat
|
||||
(rx/of ::dwp/force-persist
|
||||
|
@ -106,7 +106,7 @@
|
|||
(rx/take 1)
|
||||
(rx/mapcat #(rp/cmd! :restore-file-snapshot {:file-id file-id :id id}))
|
||||
(rx/tap #(th/clear-queue!))
|
||||
(rx/map #(dw/initialize-file project-id file-id)))
|
||||
(rx/map #(dw/initialize-workspace file-id)))
|
||||
(case origin
|
||||
:version
|
||||
(rx/of (ptk/event ::ev/event {::ev/name "restore-pin-version"}))
|
||||
|
|
Loading…
Add table
Reference in a new issue