From b92250829afe9855404aa1e7bc387ab569db1f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= Date: Thu, 9 Jun 2022 16:02:40 -0400 Subject: [PATCH] fis(print): handle display of legend.. missing filter to complete observable when no legend is available. --- packages/geo/src/lib/print/shared/print.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/geo/src/lib/print/shared/print.service.ts b/packages/geo/src/lib/print/shared/print.service.ts index a7e0fe681f..10a588a835 100644 --- a/packages/geo/src/lib/print/shared/print.service.ts +++ b/packages/geo/src/lib/print/shared/print.service.ts @@ -157,7 +157,7 @@ export class PrintService { size: map.ol.getSize() } as LegendMapViewOptions ); - if (legends.length === 0) { + if (legends.filter(l => l.display).length === 0) { observer.next(html); observer.complete(); return;