From 8321e2f92dbc073b8f1de87895d6620a2021b22e Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Fri, 20 Jan 2023 21:56:53 +1100
Subject: Relayout events upon category changes

---
 src/App.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 4149a66..534f528 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -344,7 +344,7 @@ function onSearch(event: HistEvent){
 // For settings modal
 const settingsOpen = ref(false);
 function onSettingChg(option: string){
-	if (option == 'reqImgs'){
+	if (option == 'reqImgs' || option.startsWith('ctgs.')){
 		// Reset event data
 		eventTree.value = new RBTree(cmpHistEvent); // Will trigger event re-query
 		unitCountMaps.value = SCALES.map(() => new Map());
-- 
cgit v1.2.3

