fix category not display in transaction list page sometimes

This commit is contained in:
MaysWind
2021-01-11 00:20:35 +08:00
parent 32ccbdcd03
commit bf8dd5aa62
+6 -7
View File
@@ -441,17 +441,16 @@ export default {
self.loading = true;
}
const promises = [
Promise.all([
self.$store.dispatch('loadAllAccounts', { force: false }),
self.$store.dispatch('loadAllCategories', { force: false }),
self.$store.dispatch('getTransactions', {
self.$store.dispatch('loadAllCategories', { force: false })
]).then(() => {
return self.$store.dispatch('getTransactions', {
reload: true,
autoExpand: true,
defaultCurrency: self.defaultCurrency
})
];
Promise.all(promises).then(() => {
});
}).then(() => {
if (done) {
done();
}