mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-27 16:01:07 -04:00
Fix has tax behaviour.
This commit is contained in:
@ -52,7 +52,7 @@ export default {
|
||||
watch: {
|
||||
team() {
|
||||
this.updateStyleEl(this.team.custom_css);
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.initStyleEl();
|
||||
|
||||
@ -42,7 +42,7 @@ export default {
|
||||
});
|
||||
|
||||
const client = rootGetters['invoices/invoice'].client;
|
||||
if (client && client.has_tax) {
|
||||
if ((client && client.has_tax) || !client) {
|
||||
const taxes = getters.taxes.length > 0
|
||||
? getters.taxes
|
||||
: rootGetters['taxes/allWithLabels'];
|
||||
|
||||
Reference in New Issue
Block a user