Remove lodash isNaN, isNumber, isString, bind, uniqBy

(re: 6087)
This commit is contained in:
Bryan Housel
2019-03-27 23:11:08 -04:00
parent 6fb8fcb86b
commit 3896b2282f
12 changed files with 130 additions and 74 deletions
+5 -9
View File
@@ -1,11 +1,9 @@
import _uniqBy from 'lodash-es/uniqBy';
import { dispatch as d3_dispatch } from 'd3-dispatch';
import { t } from '../util/locale';
import { svgIcon } from '../svg';
import { uiCombobox, uiField, uiFormFields } from './index';
import { utilRebind, utilTriggerEvent } from '../util';
import { utilArrayUniqBy, utilRebind, utilTriggerEvent } from '../util';
export function uiChangesetEditor(context) {
@@ -72,15 +70,13 @@ export function uiChangesetEditor(context) {
if (err) return;
var comments = changesets.map(function(changeset) {
return {
title: changeset.tags.comment,
value: changeset.tags.comment
};
});
var comment = changeset.tags.comment;
return comment ? { title: comment, value: comment } : null;
}).filter(Boolean);
commentField
.call(commentCombo
.data(_uniqBy(comments, 'title'))
.data(utilArrayUniqBy(comments, 'title'))
);
});
}