From 0b1b4daa0b7984258e8adcb8342c67b955d02005 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 22 Jan 2023 23:35:07 +0530 Subject: [PATCH] UI bug fix --- index.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 00ec0a4..7f5ca78 100644 --- a/index.html +++ b/index.html @@ -1108,13 +1108,9 @@ } } else { if (targetPage.includes('/')) { - if (targetPage.includes('?')) { - const splitAddress = targetPage.split('?') - searchParams = splitAddress.pop(); - [, pageId, subPageId1] = splitAddress.pop().split('/') - } else { - [, pageId, subPageId1] = targetPage.split('/') - } + let path; + [path, searchParams] = targetPage.split('?'); + [, pageId, subPageId1] = path.split('/') } else { pageId = targetPage } @@ -1185,7 +1181,7 @@ ` : ''}
${render.displayTasks(params?.category, params?.search)}
- +