From 7ede430db3a735c3d82d44b0748db827fef6cb00 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 28 Mar 2017 14:26:41 +0200 Subject: [PATCH] Fix 'search.oldLocation is undefined' error --- www/drive/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/drive/main.js b/www/drive/main.js index aa12aa8ba..79f793ef0 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1783,7 +1783,7 @@ define([ var isInSearchTmp = currentPath[0] === SEARCH; if ($input.val().trim() === "") { setSearchCursor(0); - if (search.oldLocation.length) { displayDirectory(search.oldLocation); } + if (search.oldLocation && search.oldLocation.length) { displayDirectory(search.oldLocation); } return; } if (e.which === 13) {