diff options
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 37b66858840..9e7a2364b18 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -703,7 +703,10 @@ function checkTrashStatus() { } function onClickBreadcrumb(e){ - var $el = $(e.target).closest('.crumb'); - e.preventDefault(); - FileList.changeDirectory(decodeURIComponent($el.data('dir'))); + var $el = $(e.target).closest('.crumb'), + $targetDir = $el.data('dir'); + if ($targetDir !== undefined){ + e.preventDefault(); + FileList.changeDirectory(decodeURIComponent($targetDir)); + } } |