Skip to content

Commit 47316e6

Browse files
committed
Check if wfsData exists in getMasterportalLayerIds
1 parent 55d5a85 commit 47316e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webfrontend/js/contentLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ function getMasterportalLayerIds(fieldConfiguration, wfsData) {
578578
const mapping = fieldConfiguration.masterportal_layer_ids;
579579

580580
let result;
581-
if (fieldName && mapping) {
581+
if (fieldName && mapping && wfsData) {
582582
result = wfsData.features.map(feature => feature.properties[fieldName])
583583
.reduce((result, value) => {
584584
const layerId = mapping.find(entry => entry.field_value === value)?.layer_id;

0 commit comments

Comments
 (0)