fix: block search showing old matches

This commit is contained in:
Barış Soner Uşaklı
2024-11-08 17:16:23 -05:00
parent 038fb71e2c
commit a9fc13dd9a

View File

@@ -33,6 +33,7 @@ define('forum/account/blocks', [
return alerts.error(err); return alerts.error(err);
} }
if (!data.users.length) { if (!data.users.length) {
blockListEl.find('[component="blocks/search/match"]').remove();
noUsersEl.removeClass('hidden'); noUsersEl.removeClass('hidden');
return; return;
} }