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:
@@ -13,8 +13,8 @@ export class SenmlService {
|
||||
|
||||
getSenMLItem(layer:IDataLayer,jsonLine:IJsonline): ISenMLItem {
|
||||
if (jsonLine) {
|
||||
var senmlPack = jsonLine.data as ISenMLItem[];
|
||||
var temp = senmlPack.filter((i) => i.u == layer.indexKey);
|
||||
const senmlPack = jsonLine.data as ISenMLItem[];
|
||||
const temp = senmlPack.filter((i) => i.u == layer.indexKey);
|
||||
if (temp.length == 1) return temp[0];
|
||||
return null;
|
||||
}
|
||||
@@ -24,7 +24,7 @@ export class SenmlService {
|
||||
if(item && item.data && item.data["layers"] && item.data["layers"].length > 0 ) {
|
||||
return item.data["layers"][0] as IDataLayer;
|
||||
} else {
|
||||
let retVal:IDataLayer = { name:"Soil moisture",index:0,scale:1,unit:"%",indexKey:"%vol" };
|
||||
const retVal:IDataLayer = { name:"Soil moisture",index:0,scale:1,unit:"%",indexKey:"%vol" };
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user