fixed sort reset

This commit is contained in:
mae 2021-03-31 14:51:08 +08:00
parent 4aad9ca498
commit 4a95cb42cd
2 changed files with 11 additions and 4 deletions

View file

@ -54,10 +54,6 @@ Template.boardChangeTitlePopup.events({
});
BlazeComponent.extendComponent({
onCreated(){
// set sort to default
Session.set('sortBy','')
},
watchLevel() {
const currentBoard = Boards.findOne(Session.get('currentBoard'));
return currentBoard && currentBoard.getWatchLevel(Meteor.userId());