From 7cf19a7138f0e59e7d8d31c65b15aacb067cd45e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Lafreni=C3=A8re?= <53181414+PhilippeLafreniere18@users.noreply.github.com> Date: Tue, 29 Mar 2022 15:19:19 -0400 Subject: [PATCH] fix(export): fix layers error when export tool is aleardy selected (#1025) --- .../lib/import-export/import-export/import-export.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/geo/src/lib/import-export/import-export/import-export.component.ts b/packages/geo/src/lib/import-export/import-export/import-export.component.ts index 2e678317d4..429f555254 100644 --- a/packages/geo/src/lib/import-export/import-export/import-export.component.ts +++ b/packages/geo/src/lib/import-export/import-export/import-export.component.ts @@ -356,7 +356,7 @@ export class ImportExportComponent implements OnDestroy, OnInit { } public getLayerTitleById(id): string { - return this.map.getLayerById(id).title; + return this.map.getLayerById(id)?.title; }