Skip to content

Commit

Permalink
fis(print): handle display of legend.. missing filter to complete obs…
Browse files Browse the repository at this point in the history
…ervable when no legend is available.
  • Loading branch information
Pierre-Étienne Lord committed Jun 9, 2022
1 parent f807de4 commit b922508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/geo/src/lib/print/shared/print.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b922508

Please sign in to comment.