From f211a39aefaf9732d8934bff85514795baf011fd Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Fri, 2 Oct 2020 23:52:15 +0700 Subject: [PATCH] Cleaned up dashboard.js --- src/js/dashboard.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/dashboard.js b/src/js/dashboard.js index 57853ae..781df23 100644 --- a/src/js/dashboard.js +++ b/src/js/dashboard.js @@ -298,11 +298,9 @@ page.updateTrigger = (trigger, newState) => { if (trigger.parentNode.tagName === 'LI' && !trigger.className.includes('pagination-link')) { for (let i = 0; i < page.menus.length; i++) page.menus[i].classList.remove('is-active') - trigger.classList.remove('is-loading') trigger.classList.add('is-active') - } else { - trigger.classList.remove('is-loading') } + trigger.classList.remove('is-loading') } else { trigger.classList.remove('is-loading') trigger.classList.remove('is-active')