From 0faa99fbfc1ec5fb8a6bc21a97d845f4d02a07c4 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 17 Oct 2022 14:00:53 +0200 Subject: [PATCH] Remove the drive filter on reload --- www/common/drive-ui.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 319440026..3726e169f 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -3164,7 +3164,6 @@ define([ $block.find('a.cp-app-drive-rm-filter') .click(function () { APP.store[FILTER_BY] = undefined; - localStore.put(FILTER_BY, undefined); APP.displayDirectory(currentPath); }); } @@ -3172,7 +3171,6 @@ define([ .click(function () { var type = $(this).attr('data-type') || 'invalid-filter'; APP.store[FILTER_BY] = type; - localStore.put(FILTER_BY, type); APP.displayDirectory([FILTER, type, currentPath]); }); @@ -4069,7 +4067,6 @@ define([ currentPath = path; } else { APP.store[FILTER_BY] = undefined; - localStore.put(FILTER_BY, undefined); } var isInRoot = manager.isPathIn(path, [ROOT]); var inTrash = manager.isPathIn(path, [TRASH]);