Fix small bug
This commit is contained in:
parent
539931d011
commit
1af27106f9
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
@ -212,7 +212,7 @@ for (const layer of layoutToUse.layers) {
|
||||||
|
|
||||||
const flayer = FilteredLayer.fromDefinition(layer, bm, allElements, changes, osmConnection.userDetails, selectedElement, generateInfo);
|
const flayer = FilteredLayer.fromDefinition(layer, bm, allElements, changes, osmConnection.userDetails, selectedElement, generateInfo);
|
||||||
|
|
||||||
for (const preset of layer.presets) {
|
for (const preset of layer.presets ?? []) {
|
||||||
|
|
||||||
if (preset.icon === undefined) {
|
if (preset.icon === undefined) {
|
||||||
const tags = {};
|
const tags = {};
|
||||||
|
|
Loading…
Reference in a new issue