mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 01:47:49 +02:00
Remove lodash isNaN, isNumber, isString, bind, uniqBy
(re: 6087)
This commit is contained in:
@@ -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'))
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user