show inherited fields from global parents

fixes regression from 43784e2ef
This commit is contained in:
Martin Raifer
2023-05-26 19:44:27 +02:00
parent ffab062ca0
commit 5a3a2d876e
+1 -1
View File
@@ -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 => {