AW-6033 /api/v1/items/undefined/children?... 401 (Unauthorized)
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Peter (extern) 2024-04-04 14:55:39 +02:00
parent e306bf601f
commit 5c5914327c

View File

@ -83,7 +83,8 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
ngOnInit() {
this.sub = this.folderService.getFolder('my_settings').subscribe(
userSettingsRoot => {
this.itemService.getChildItemList(userSettingsRoot?.code, 'vnd.farmmaps.itemtype.settings.general').subscribe(
if (userSettingsRoot == undefined) return;
this.itemService.getChildItemList(userSettingsRoot.code, 'vnd.farmmaps.itemtype.settings.general').subscribe(
items => {
if (items && items.length > 0 && items[0].data?.displayMapFeatureSettings) {
this.displayMapFeatureSettings = items[0].data?.displayMapFeatureSettings;