fix: Bring back upcoming cards view by adapting to proper API return value
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -52,11 +52,11 @@ export default {
|
|||||||
const promise = (async () => {
|
const promise = (async () => {
|
||||||
commit('setCurrentBoard', null)
|
commit('setCurrentBoard', null)
|
||||||
const assignedCards = await apiClient.get('upcoming')
|
const assignedCards = await apiClient.get('upcoming')
|
||||||
const assignedCardsFlat = assignedCards.flat()
|
const assignedCardsFlat = Object.values(assignedCards).flat()
|
||||||
for (const i in assignedCardsFlat) {
|
for (const i in assignedCardsFlat) {
|
||||||
commit('addCard', assignedCardsFlat[i])
|
commit('addCard', assignedCardsFlat[i])
|
||||||
}
|
}
|
||||||
commit('setAssignedCards', assignedCardsFlat)
|
commit('setAssignedCards', assignedCards)
|
||||||
commit('setLoading', false)
|
commit('setLoading', false)
|
||||||
})()
|
})()
|
||||||
commit('setLoading', promise)
|
commit('setLoading', promise)
|
||||||
|
|||||||
Reference in New Issue
Block a user