Skip to content

Commit 58df78b

Browse files
Check for custom map options during PDF generation
1 parent 5fdd882 commit 58df78b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/frontend/src/app/core/services/pdf-download.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export class PdfDownloadService {
182182
private mapParametersToStaticMapParameters(): Observable<string[]> {
183183
return this.store.select(fromConfig.selectMapOptions).pipe(
184184
map((options) => {
185-
return options.styles.map((style) => {
185+
return (options?.styles || []).map((style) => {
186186
const feature = `feature:${style.featureType || 'all'}|`;
187187
const element = style.elementType ? `element:${style.elementType}|` : '';
188188
const stylers = style.stylers

0 commit comments

Comments
 (0)