From aef573d37cc4db5fbc9050a773372e38577a72f6 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 31 Jan 2023 18:21:06 +0100 Subject: [PATCH] Fix cache build --- Logic/SimpleMetaTagger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/SimpleMetaTagger.ts b/Logic/SimpleMetaTagger.ts index dd1996524..589678ad2 100644 --- a/Logic/SimpleMetaTagger.ts +++ b/Logic/SimpleMetaTagger.ts @@ -499,7 +499,7 @@ export default class SimpleMetaTaggers { return false } OsmObject.DownloadReferencingWays(id).then((referencingWays) => { - const currentTagsSource = state.allElements.getEventSourceById(id) + const currentTagsSource = state.allElements?.getEventSourceById(id) ?? [] const wayIds = referencingWays.map((w) => "way/" + w.id) wayIds.sort() const wayIdsStr = wayIds.join(";")