Fix eslint errors again.
This commit is contained in:
parent
43714c1b1d
commit
727b2fc313
@ -115,6 +115,7 @@ angular.module('accountant.operations', [
|
||||
size: '60%',
|
||||
dataLabels: {
|
||||
formatter: function() {
|
||||
// eslint-disable-next-line angular/controller-as-vm
|
||||
return this.point.name;
|
||||
},
|
||||
distance: -40
|
||||
@ -126,8 +127,14 @@ angular.module('accountant.operations', [
|
||||
size: '60%',
|
||||
dataLabels: {
|
||||
formatter: function() {
|
||||
return this.point.name !== null && this.percentage >=
|
||||
2.5 ? this.point.name : null; }
|
||||
// eslint-disable-next-line angular/controller-as-vm
|
||||
if (this.point.name !== null && this.percentage >= 2.5) {
|
||||
// eslint-disable-next-line angular/controller-as-vm
|
||||
return this.point.name;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user