From 5a3a2d876e3a685cfa3391b4f1aeb3c0b4b6e765 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Fri, 26 May 2023 19:44:27 +0200 Subject: [PATCH] show inherited fields from global parents fixes regression from 43784e2ef --- modules/presets/preset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/presets/preset.js b/modules/presets/preset.js index 57a0c8b6b..3b025512b 100644 --- a/modules/presets/preset.js +++ b/modules/presets/preset.js @@ -312,7 +312,7 @@ export function presetPreset(presetID, preset, addable, allFields, allPresets) { let parent = allPresets[parentID]; if (loc) { const validHere = locationManager.locationSetsAt(loc); - if (!validHere[parent.locationSetID]) { + if (parent.locationSetID && !validHere[parent.locationSetID]) { // this is a preset for which a regional variant of the main preset exists const candidateIDs = Object.keys(allPresets).filter(k => k.startsWith(parentID)); parent = allPresets[candidateIDs.find(candidateID => {