fix: check thumb

This commit is contained in:
Barış Soner Uşaklı
2023-01-30 13:32:36 -05:00
parent ca6642d1b7
commit 9a479526cc

View File

@@ -141,7 +141,7 @@ define('navigator', ['forum/pagination', 'components', 'hooks', 'alerts'], funct
}
function setThumbToIndex(index) {
if (!thumb.length || thumb.is(':hidden')) {
if (!thumb || !thumb.length || thumb.is(':hidden')) {
return;
}
const parent = thumb.parent();