Skip to content

Commit 6fb31a7

Browse files
committed
fix persist
1 parent bb5f9b2 commit 6fb31a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/renderer/history/handlers.cljs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
#(-> (select-keys % [pos])
8585
(assoc-in [pos :index] 0)
8686
(assoc-in [pos :children] [])
87+
;; This state needs to be persisted, so we cannot pass a function
88+
;; as an explanation, because it's not serializable.
89+
(assoc-in [pos :explanation] "Initial state")
8790
(update pos dissoc :parent)))))))
8891

8992
(m/=> preview [:-> App uuid? App])

0 commit comments

Comments
 (0)