Fix lint errors

This commit is contained in:
Quincy Morgan
2020-09-24 11:35:38 -04:00
parent 4d51713253
commit 9a8cae70d2
2 changed files with 3 additions and 3 deletions

View File

@@ -332,7 +332,7 @@ export function uiFieldLocalized(field, context) {
var sTag = s.id.split('/', 2);
var sKey = sTag[0];
var sValue = sTag[1];
var subtitle = s.subtitle()
var subtitle = s.subtitle();
var name = s.name();
if (subtitle) name += ' ' + subtitle;
var dist = utilEditDistance(value, name.substring(0, value.length));

View File

@@ -95,14 +95,14 @@ export function uiSectionFeatureType(context) {
.preset(_presets.length === 1 ? _presets[0] : presetManager.item('point'))
);
var nameparts = _presets.length === 1 ? [
var names = _presets.length === 1 ? [
_presets[0].nameLabel(),
_presets[0].subtitleLabel()
].filter(Boolean) : [t('inspector.multiple_types')];
var label = selection.select('.label-inner');
var nameparts = label.selectAll('.namepart')
.data(nameparts, function(d) { return d; });
.data(names, function(d) { return d; });
nameparts.exit()
.remove();