From d8c350533e457c4859591675c5ee04efd0e586bb Mon Sep 17 00:00:00 2001 From: uosl Date: Fri, 17 Dec 2021 18:10:55 +0000 Subject: [PATCH] Clear template filters when changing mine/logging out --- src/cljs/bluegenes/events/boot.cljs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cljs/bluegenes/events/boot.cljs b/src/cljs/bluegenes/events/boot.cljs index 46bd55af..03b0aa37 100644 --- a/src/cljs/bluegenes/events/boot.cljs +++ b/src/cljs/bluegenes/events/boot.cljs @@ -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)))