Correctly filter moreFields by allowed field geometry

This commit is contained in:
Quincy Morgan
2020-01-06 12:32:54 -05:00
parent a54561ce75
commit c3512fc9d6

View File

@@ -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 })
);