Browse Source

Merge branch 'master' of github.com:wekan/wekan

Lauri Ojansivu 4 năm trước cách đây
mục cha
commit
0f0a5fba1f
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  1. 0 4
      client/lib/utils.js

+ 0 - 4
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';
     }