Make sure thumbnails isn't empty before dereferencing

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-06 20:13:10 -07:00
parent 88de1feeb4
commit 6e883c98fe

View File

@ -315,7 +315,7 @@
triggerVisibilityChecks: function() {
this.debounce("hide-or-show", function() {
if (!this.thumbnails) {
if (!this.thumbnails || !this.thumbnails.length) {
return;
}