Make combo field work without an entity

This commit is contained in:
Bryan Housel
2017-08-15 15:34:34 -04:00
parent e9909717c7
commit 746b54f3d2
+8 -3
View File
@@ -161,12 +161,17 @@ export function uiFieldCombo(field, context) {
query = country + ':';
}
taginfo[fn]({
var params = {
debounce: (q !== ''),
key: field.key,
geometry: context.geometry(entity.id),
query: query
}, function(err, data) {
};
if (entity) {
params.geometry = context.geometry(entity.id);
}
taginfo[fn](params, function(err, data) {
if (err) return;
if (hasCountryPrefix) {
data = _.filter(data, function(d) {