Aw4751 eslint fixes
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -19,7 +19,7 @@ export class GradientComponent implements OnInit,OnChanges {
|
||||
|
||||
getGradientStyle(item:IItem):any {
|
||||
if(item.data && item.data.gradient) {
|
||||
let gradient = item.data.gradient as IGradientstop[];
|
||||
const gradient = item.data.gradient as IGradientstop[];
|
||||
return this.gradientService.getGradientStyle(gradient);
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ export class GradientComponent implements OnInit,OnChanges {
|
||||
|
||||
ngOnChanges(changes: SimpleChanges) {
|
||||
if(changes['gradientItem']) {
|
||||
let gradientItem = changes['gradientItem'].currentValue;
|
||||
const gradientItem = changes['gradientItem'].currentValue;
|
||||
if(gradientItem && gradientItem.itemType == "vnd.farmmaps.itemtype.gradient") {
|
||||
this.gradientStyle = this.getGradientStyle(changes['gradientItem'].currentValue);
|
||||
this.ref.markForCheck();
|
||||
|
Reference in New Issue
Block a user