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:
@@ -8,7 +8,7 @@ export class StateSerializerService {
|
||||
|
||||
serialize(queryState: IQueryState): string {
|
||||
|
||||
var state = "";
|
||||
let state = "";
|
||||
state += (queryState.itemCode) ? queryState.itemCode : "";
|
||||
state += ";";
|
||||
state += (queryState.parentCode) ? queryState.parentCode + ";" + queryState.level.toString() : ";";
|
||||
@@ -31,8 +31,8 @@ export class StateSerializerService {
|
||||
}
|
||||
|
||||
deserialize(queryState: string): IQueryState {
|
||||
var state: IQueryState = { itemCode: null, parentCode: null, level: 1, itemType: null, query: null, tags: null, bboxFilter: false, startDate: null, endDate: null,bbox:[] };
|
||||
var stateParts = atob(queryState).split(";");
|
||||
const state: IQueryState = { itemCode: null, parentCode: null, level: 1, itemType: null, query: null, tags: null, bboxFilter: false, startDate: null, endDate: null,bbox:[] };
|
||||
const stateParts = atob(queryState).split(";");
|
||||
if (stateParts.length == 10) {
|
||||
if (stateParts[0] != "") state.itemCode = stateParts[0];
|
||||
if (stateParts[1] != "") {
|
||||
|
||||
Reference in New Issue
Block a user