From 60fedad3fe384a2b0652941e57ecaa5fc4b7897a Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 8 Feb 2021 21:11:13 +0200 Subject: [PATCH] Fixed lint. Thanks to xet7 ! --- CHANGELOG.md | 3 ++ client/components/sidebar/sidebarArchives.js | 45 ++++++++++++-------- client/components/users/userHeader.js | 2 +- 3 files changed, 31 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af4bb43ba..309b86963 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and fixes the following bugs: - [Fix bug in adding new users](https://github.com/wekan/wekan/pull/3544). Thanks to jrsupplee. +- [Issue - Deleting a linked card blocked the parent board to load +- [Fixed Board does not load, by disabling Custom Fields sorting](https://github.com/wekan/wekan/commit/d57eb6a2fc73c7b25c957ad42b5f7a06f680e1a1). + Thanks to marcungeschikts, olivierlambert and xet7. Thanks to above GitHub users for their contributions and translators for their translations. diff --git a/client/components/sidebar/sidebarArchives.js b/client/components/sidebar/sidebarArchives.js index d2a7cf27e..daddd464f 100644 --- a/client/components/sidebar/sidebarArchives.js +++ b/client/components/sidebar/sidebarArchives.js @@ -31,30 +31,39 @@ BlazeComponent.extendComponent({ }, archivedCards() { - return Cards.find({ - archived: true, - boardId: Session.get('currentBoard'), - }, { - sort: { archivedAt: -1, modifiedAt: -1 }, - }); + return Cards.find( + { + archived: true, + boardId: Session.get('currentBoard'), + }, + { + sort: { archivedAt: -1, modifiedAt: -1 }, + }, + ); }, archivedLists() { - return Lists.find({ - archived: true, - boardId: Session.get('currentBoard'), - }, { - sort: { archivedAt: -1, modifiedAt: -1 }, - }); + return Lists.find( + { + archived: true, + boardId: Session.get('currentBoard'), + }, + { + sort: { archivedAt: -1, modifiedAt: -1 }, + }, + ); }, archivedSwimlanes() { - return Swimlanes.find({ - archived: true, - boardId: Session.get('currentBoard'), - }, { - sort: { archivedAt: -1, modifiedAt: -1 }, - }); + return Swimlanes.find( + { + archived: true, + boardId: Session.get('currentBoard'), + }, + { + sort: { archivedAt: -1, modifiedAt: -1 }, + }, + ); }, cardIsInArchivedList() { diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js index 59c12d1a6..1f97c66df 100644 --- a/client/components/users/userHeader.js +++ b/client/components/users/userHeader.js @@ -274,7 +274,7 @@ Template.changeSettingsPopup.events({ 'keypress/paste #show-cards-count-at'() { let keyCode = event.keyCode; let charCode = String.fromCharCode(keyCode); - let regex = new RegExp("[-0-9]"); + let regex = new RegExp('[-0-9]'); let ret = regex.test(charCode); return ret; },