From 6920c39752ef88dd231ec19ea6aca20d71451aca Mon Sep 17 00:00:00 2001 From: "John R. Supplee" Date: Fri, 29 Jan 2021 21:09:28 +0200 Subject: [PATCH] Don't reload page when returning default sort --- client/lib/utils.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/lib/utils.js b/client/lib/utils.js index 156b37e4b..e91d08380 100644 --- a/client/lib/utils.js +++ b/client/lib/utils.js @@ -48,8 +48,6 @@ Utils = { let sort = window.localStorage.getItem('myCardsSort'); if (!sort || !['board', 'dueAt'].includes(sort)) { - window.localStorage.setItem('myCardsSort', 'board'); - location.reload(); sort = 'board'; } @@ -81,8 +79,6 @@ Utils = { let view = window.localStorage.getItem('dueCardsView'); if (!view || !['me', 'all'].includes(view)) { - window.localStorage.setItem('dueCardsView', 'me'); - location.reload(); view = 'me'; }