Fix doc generation

This commit is contained in:
Pieter Vander Vennet 2022-02-14 04:59:57 +01:00
parent e7ca1f2dc7
commit f48bc52b0b

View file

@ -402,7 +402,7 @@ export default class LayerConfig extends WithContextLoader {
const icon = this.mapRendering
.filter(mr => mr.location.has("point"))
.map(mr => mr.icon.render.txt)
.map(mr => mr.icon?.render?.txt)
.find(i => i !== undefined)
let iconImg = ""
if (icon !== undefined) {