mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-22 23:42:54 +01:00
fix: check thumb
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user