Skip to content

Commit

Permalink
fix: Bring back upcoming cards view by adapting to proper API return …
Browse files Browse the repository at this point in the history
…value

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Nov 14, 2023
1 parent bf7e7e3 commit 91ce24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ export default {
const promise = (async () => {
commit('setCurrentBoard', null)
const assignedCards = await apiClient.get('upcoming')
const assignedCardsFlat = assignedCards.flat()
const assignedCardsFlat = Object.values(assignedCards).flat()
for (const i in assignedCardsFlat) {
commit('addCard', assignedCardsFlat[i])
}
commit('setAssignedCards', assignedCardsFlat)
commit('setAssignedCards', assignedCards)
commit('setLoading', false)
})()
commit('setLoading', promise)
Expand Down

0 comments on commit 91ce24b

Please sign in to comment.