diff --git a/src/UI/SpecialVisualizations.ts b/src/UI/SpecialVisualizations.ts index 43841d828..dc4a89439 100644 --- a/src/UI/SpecialVisualizations.ts +++ b/src/UI/SpecialVisualizations.ts @@ -1996,6 +1996,9 @@ export default class SpecialVisualizations { ): BaseUIElement { const translation = tagSource.map((tags) => { const presets = state.layout.getMatchingLayer(tags)?.presets + if(!presets){ + return undefined + } const matchingPresets = presets .filter((pr) => pr.description !== undefined) .filter((pr) => new And(pr.tags).matchesProperties(tags))