mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 11:51:35 +00:00
Correctly filter moreFields by allowed field geometry
This commit is contained in:
@@ -59,7 +59,8 @@ export function uiPresetEditor(context) {
|
||||
});
|
||||
|
||||
additionalFields.forEach(function(field) {
|
||||
if (_preset.fields.indexOf(field) === -1) {
|
||||
if (_preset.fields.indexOf(field) === -1 &&
|
||||
field.matchGeometry(geometry)) {
|
||||
_fieldsArr.push(
|
||||
uiField(context, field, entity, { show: false })
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user