From 208a85a4a9ff19758a4f1074ab59815167eb462e Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 17 May 2021 17:11:52 +0200 Subject: [PATCH] Robuster handling when old data is loaded after a theme id rename --- Logic/FeatureSource/WayHandlingApplyingFeatureSource.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Logic/FeatureSource/WayHandlingApplyingFeatureSource.ts b/Logic/FeatureSource/WayHandlingApplyingFeatureSource.ts index 25be78c40..a58442edc 100644 --- a/Logic/FeatureSource/WayHandlingApplyingFeatureSource.ts +++ b/Logic/FeatureSource/WayHandlingApplyingFeatureSource.ts @@ -36,7 +36,8 @@ export default class WayHandlingApplyingFeatureSource implements FeatureSource { const layerId = feat._matching_layer_id; const layer: LayerConfig = layerDict[layerId].layerDef; if (layer === undefined) { - throw "No layer found with id " + layerId; + console.error("No layer found with id " + layerId); + continue; } if (layer.wayHandling === LayerConfig.WAYHANDLING_DEFAULT) {