Add null check
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:
parent
8e0c424f81
commit
be4cbd36d1
@ -137,7 +137,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
|
|||||||
if (queryState.itemCode && queryState.itemCode != "") {
|
if (queryState.itemCode && queryState.itemCode != "") {
|
||||||
if(queryState.itemType && queryState.itemType!= "") {
|
if(queryState.itemType && queryState.itemType!= "") {
|
||||||
let itemType = this.itemTypeService.itemTypes[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('/editor');
|
||||||
urlparts.push(itemType.editor);
|
urlparts.push(itemType.editor);
|
||||||
urlparts.push('item');
|
urlparts.push('item');
|
||||||
|
Loading…
Reference in New Issue
Block a user