Hard limit hotswaps to 25 entries

This commit is contained in:
Cohee
2025-03-04 23:49:32 +02:00
parent c48ecc67b2
commit 5d69189f8f

View File

@ -316,7 +316,7 @@ export async function favsToHotswap() {
const entities = getEntitiesList({ doFilter: false });
const container = $('#right-nav-panel .hotswap');
const favs = entities.filter(x => x.item.fav || x.item.fav == 'true');
const favs = entities.filter(x => x.item.fav || x.item.fav == 'true').slice(0, 25);
//helpful instruction message if no characters are favorited
if (favs.length == 0) {