Try to fix loop
FarmMaps.Develop/FarmMapsLib/develop This commit looks good Details

feature/MinimizeSolution
Willem Dantuma 2020-02-21 11:51:42 +01:00
parent 85143986ee
commit 2b5bda2a44
1 changed files with 7 additions and 5 deletions

View File

@ -143,11 +143,13 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
urlparts.push(queryState.itemCode);
}
}
if(urlparts.length>0) {
this.router.navigate(urlparts);
} else {
if(state[1]>0) this.replaceUrl(mapState, queryState,false);
}
if(state[1]>0) {
if(urlparts.length>0) {
this.router.navigate(urlparts);
} else {
this.replaceUrl(mapState, queryState,false);
}
}
});
}