From 643d70e6f0b52d0dd1607663fe1fc70a5811baa8 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Tue, 11 Dec 2018 14:59:52 +0100 Subject: [PATCH] Removes filtering of the left side bar boards --- src/store/modules/nav.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/store/modules/nav.js b/src/store/modules/nav.js index c0dfeadb2..503a51734 100644 --- a/src/store/modules/nav.js +++ b/src/store/modules/nav.js @@ -129,17 +129,10 @@ export const BOARD_FILTERS = { const getters = { menu: state => { - // filters the boards depending on the active filter - const boards = state.boards.filter(board => { - return state.filter === BOARD_FILTERS.ALL - || (state.filter === BOARD_FILTERS.ARCHIVED && board.archived === true) - || (state.filter === BOARD_FILTERS.SHARED && board.shared === 1) - }) - return { loading: state.loading, items: defaultCategories - .concat(boards.map(mapBoardToItem)) + .concat(state.boards.map(mapBoardToItem)) .concat([addButton]) } },