From 8b67a7ee6f55a2638bdccb0fb08b362a9b803325 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Tue, 22 Nov 2022 14:06:48 +0530 Subject: [PATCH] bug fixes --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 9d503b1..14e404c 100644 --- a/index.html +++ b/index.html @@ -1782,6 +1782,7 @@ if (!RIBC) return const allTasks = RIBC.getAllTasks(); const displayedTasks = RIBC.getDisplayedTasks() + if (!displayedTasks || !Array.isArray(displayedTasks)) return const filterCategory = category === 'all' ? false : category; const filtered = [] const availableCategories = new Set(); @@ -2407,7 +2408,7 @@ const filterTasks = debounce((e) => { const searchQuery = getRef('task_search_input')?.value.trim() || ''; const category = getRef('task_category_selector')?.value || 'all'; - window.location.hash = `#/${appState.currentPage}?category=${category}${searchQuery !== '' ? `&search=${searchQuery}` : ''}`; + window.location.hash = `${location.hash.split('?')[0]}?category=${category}${searchQuery !== '' ? `&search=${searchQuery}` : ''}`; }, 100) function showTaskDetails(taskId) {