style: wrap long query selector in getRenderedWatchlistIds

This commit is contained in:
2026-05-26 20:29:39 +02:00
parent 50159286b4
commit 3e79f62805

View File

@@ -265,7 +265,9 @@ const getRenderedWatchlistIds = (): number[] => {
const ids = new Set<number>();
document
.querySelectorAll<HTMLElement>('[data-watchlist-toggle][data-watchlist-state="in"][data-mal-id]')
.querySelectorAll<HTMLElement>(
'[data-watchlist-toggle][data-watchlist-state="in"][data-mal-id]'
)
.forEach(button => {
const id = toInt(button.dataset.malId);
if (id === null) return;