From b948e31a89f15eee37cc2792cc4f0ef34f73b11e Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 5 Apr 2024 00:54:17 +0300 Subject: [PATCH] Remove tag debug logs if state unchanged --- public/scripts/tags.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/scripts/tags.js b/public/scripts/tags.js index ac2e722da..553a6132c 100644 --- a/public/scripts/tags.js +++ b/public/scripts/tags.js @@ -765,7 +765,9 @@ function toggleTagThreeState(element, { stateOverride = undefined, simulateClick element.toggleClass(FILTER_STATES[state].class, state === states[targetStateIndex]); }); - console.debug('toggle three-way filter from', states[currentStateIndex], 'to', states[targetStateIndex], 'on', element); + if (states[currentStateIndex] !== states[targetStateIndex]) { + console.debug('toggle three-way filter from', states[currentStateIndex], 'to', states[targetStateIndex], 'on', element); + } }