From c3512fc9d6c8658aab9838cbffd03faebc49bc6d Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Mon, 6 Jan 2020 12:32:54 -0500 Subject: [PATCH] Correctly filter `moreFields` by allowed field geometry --- modules/ui/preset_editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/preset_editor.js b/modules/ui/preset_editor.js index 38a20b7ee..e6d2f66da 100644 --- a/modules/ui/preset_editor.js +++ b/modules/ui/preset_editor.js @@ -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 }) );