enhance: restore both route and right sidebar when undo/redo

This commit is contained in:
Tienson Qin
2023-04-06 18:21:42 +08:00
parent 95149e13f6
commit 593526f578
2 changed files with 32 additions and 5 deletions

View File

@@ -176,5 +176,10 @@
:txs tx-data
:tx-meta tx-meta
:editor-cursor (:editor-cursor tx-meta)
:pagination-blocks-range (get-in [:ui/pagination-blocks-range (get-in tx-report [:db-after :max-tx])] @state/state)}]
:pagination-blocks-range (get-in [:ui/pagination-blocks-range (get-in tx-report [:db-after :max-tx])] @state/state)
:app-state (select-keys @state/state
[:route-match
:ui/sidebar-open?
:ui/sidebar-collapsed-blocks
:sidebar/blocks])}]
(push-undo entity)))))