Skip to content

Commit

Permalink
Clear template filters when changing mine/logging out
Browse files Browse the repository at this point in the history
heralden committed Dec 17, 2021
1 parent 43763f6 commit d8c3505
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cljs/bluegenes/events/boot.cljs
Original file line number Diff line number Diff line change
@@ -232,6 +232,8 @@
;; The old by-id map is used to detect newly added lists.
;; During a mine change, this will mean all lists, which we don't want.
(update-in [:lists :by-id] empty)
;; Clear any chosen template and filters
(update :components dissoc :template-chooser)
;; Clear admin page manage templates panel.
(assoc-in [:admin :manage-templates] nil)))

0 comments on commit d8c3505

Please sign in to comment.