Exclude existing keys from auto-completion in raw tag editor

(closes #3625)
This commit is contained in:
Bryan Housel
2019-02-05 16:14:18 -05:00
parent 51af1f3b13
commit b87ae4e98b

View File

@@ -227,7 +227,12 @@ export function uiRawTagEditor(context) {
geometry: geometry,
query: value
}, function(err, data) {
if (!err) callback(sort(value, data));
if (!err) {
var filtered = data.filter(function(d) {
return _tags[d.value] === undefined;
});
callback(sort(value, filtered));
}
});
}));