Skip to content

Commit

Permalink
fix(print): Reflect rxjs change in next() method
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacura committed Feb 26, 2025
1 parent e42fc2b commit bf16818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/hslayers/components/print/print-legend.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class HsPrintLegendService extends PrintLegendParams {
subscriber.complete();
};
img.onerror = function (event) {
subscriber.next();
subscriber.next(null);
subscriber.complete();
};
if (
Expand Down Expand Up @@ -344,7 +344,7 @@ export class HsPrintLegendService extends PrintLegendParams {
subscriber.complete();
};
img.onerror = function () {
subscriber.next();
subscriber.next(null);
subscriber.complete();
};
img.src = imageUrl;
Expand Down

0 comments on commit bf16818

Please sign in to comment.