From 80115d0071b86c498ad23e5469156194814424b5 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 3 May 2017 17:17:42 +0200 Subject: [PATCH] Fix an 'undefined' variable error in the drive --- www/drive/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/drive/main.js b/www/drive/main.js index 7a5f9dcff..88a67ca97 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1871,6 +1871,7 @@ define([ var $truncated = $('', {'class': 'truncated'}).text('...'); $content.find('.element').each(function (idx, el) { var $name = $(el).find('.name'); + if ($name.length === 0) { return; } if ($name[0].scrollHeight > $name[0].clientHeight) { var $tr = $truncated.clone(); $tr.attr('title', $name.attr('title'));