Add null check
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

feature/MinimizeSolution
Willem Dantuma 2020-04-16 17:43:13 +02:00
parent 8e0c424f81
commit be4cbd36d1
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
if (queryState.itemCode && queryState.itemCode != "") {
if(queryState.itemType && queryState.itemType!= "") {
let itemType = this.itemTypeService.itemTypes[queryState.itemType];
if (itemType.viewer && itemType.viewer == "edit_in_editor" && itemType.editor) {
if (itemType && itemType.viewer && itemType.viewer == "edit_in_editor" && itemType.editor) {
urlparts.push('/editor');
urlparts.push(itemType.editor);
urlparts.push('item');