Try to fix loop
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Willem Dantuma 2020-02-21 11:51:42 +01:00
parent 85143986ee
commit 2b5bda2a44

View File

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