Trim TG types after split

This commit is contained in:
Cohee 2024-01-15 20:45:21 +02:00
parent 22e605168b
commit 5cb4dbc280
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ jQuery(function () {
function showTypeSpecificControls(type) {
$('[data-tg-type]').each(function () {
const tgTypes = $(this).attr('data-tg-type').split(',');
const tgTypes = $(this).attr('data-tg-type').split(',').map(x => x.trim());
for (const tgType of tgTypes) {
if (tgType === type || tgType == 'all') {
$(this).show();