Remove tag debug logs if state unchanged

This commit is contained in:
Cohee 2024-04-05 00:54:17 +03:00
parent 0804843805
commit b948e31a89
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}