Merge pull request #2842 from brkcvn/master
Javascript console error fixed
This commit is contained in:
commit
0435fa4f61
18
resources/assets/js/views/common/documents.js
vendored
18
resources/assets/js/views/common/documents.js
vendored
@ -464,20 +464,18 @@ const app = new Vue({
|
||||
},
|
||||
|
||||
onSelectedTax(item_index) {
|
||||
if (! this.tax_id) {
|
||||
if (! this.tax_id || this.tax_id == '') {
|
||||
return;
|
||||
}
|
||||
|
||||
let selected_tax;
|
||||
|
||||
if (this.dynamic_taxes.length) {
|
||||
this.dynamic_taxes.forEach(function(tax) {
|
||||
if (tax.id == this.tax_id) {
|
||||
selected_tax = tax;
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
|
||||
|
||||
this.dynamic_taxes.forEach(function(tax) {
|
||||
if (tax.id == this.tax_id) {
|
||||
selected_tax = tax;
|
||||
}
|
||||
}, this);
|
||||
|
||||
this.items[item_index].tax_ids.push({
|
||||
id: selected_tax.id,
|
||||
name: selected_tax.title,
|
||||
|
Loading…
x
Reference in New Issue
Block a user