Feat: manager case when there is no datas

This commit is contained in:
2018-12-03 12:15:22 +01:00
parent 06855a1f5b
commit 9f3cdd4f1b
2 changed files with 46 additions and 33 deletions

View File

@@ -27,6 +27,9 @@ export default {
rows: (state) => {
return state.rows.data
},
present: (state) => {
return state.rows.data.length > 0
},
spending_rows: (state, getters) => {
return getters.rows.filter(x => x.Montant < 0)
},