mirror of
https://github.com/penpot/penpot.git
synced 2025-05-15 15:46:39 +02:00
🐛 Fix history panel remains open after restoring a version
This commit is contained in:
parent
f2f3d9f7eb
commit
b0a3f2b72a
2 changed files with 5 additions and 1 deletions
|
@ -126,7 +126,8 @@
|
|||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
(rx/concat
|
||||
(rx/of ::dwp/force-persist)
|
||||
(rx/of ::dwp/force-persist
|
||||
(dw/remove-layout-flag :document-history))
|
||||
(->> (rx/from-atom refs/persistence-state {:emit-current-value? true})
|
||||
(rx/filter #(or (nil? %) (= :saved %)))
|
||||
(rx/take 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue