From 5cdd067fe8e0d972737ebde448c9254562dac619 Mon Sep 17 00:00:00 2001 From: josee666 Date: Wed, 23 Jun 2021 13:55:48 -0400 Subject: [PATCH] feat(layer-list): Fix layer filter on top of list (#882) * fixTop-LayerListFilter * fix(map tools): fix Top-LayerListFilter for mapTools, map and mapDetails Co-authored-by: Pierre-Etienne Lord --- packages/geo/src/lib/import-export/shared/import.service.ts | 3 +-- .../geo/src/lib/layer/layer-list/layer-list.component.html | 5 ++++- .../geo/src/lib/layer/layer-list/layer-list.component.scss | 3 ++- .../map/map-details-tool/map-details-tool.component.html | 2 +- .../map/map-details-tool/map-details-tool.component.scss | 4 ++++ .../src/lib/map/map-tool/map-tool.component.scss | 5 +++++ .../src/lib/map/map-tools/map-tools.component.scss | 6 ++++++ 7 files changed, 23 insertions(+), 5 deletions(-) diff --git a/packages/geo/src/lib/import-export/shared/import.service.ts b/packages/geo/src/lib/import-export/shared/import.service.ts index b3509ef9fc..e3ac23b18d 100644 --- a/packages/geo/src/lib/import-export/shared/import.service.ts +++ b/packages/geo/src/lib/import-export/shared/import.service.ts @@ -179,8 +179,7 @@ export class ImportService { const errMsg = error.error.msg || ''; if (errMsg === 'No valid files found') { observer.error(new ImportInvalidFileError()); - } else if ( - errMsg.startWith('ERROR 1: Failed to process SRS definition') + } else if (errMsg && errMsg.startWith('ERROR 1: Failed to process SRS definition') ) { observer.error(new ImportSRSError()); } else { diff --git a/packages/geo/src/lib/layer/layer-list/layer-list.component.html b/packages/geo/src/lib/layer/layer-list/layer-list.component.html index e7517224ed..873ac04c6f 100644 --- a/packages/geo/src/lib/layer/layer-list/layer-list.component.html +++ b/packages/geo/src/lib/layer/layer-list/layer-list.component.html @@ -1,4 +1,5 @@ - + + + +