Correct lodash _.omit usage

(closes #3965)
This commit is contained in:
Bryan Housel
2017-04-22 23:05:15 -04:00
parent 0782ee10c8
commit 06caeb87b7
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ export function behaviorPaste(context) {
extent._extend(oldEntity.extent(oldGraph));
context.perform(
actionChangeTags(newEntity.id, _.omit(newEntity.tags, omitTag))
actionChangeTags(newEntity.id, _.omitBy(newEntity.tags, omitTag))
);
// Exclude child nodes from newIDs if their parent way was also copied.

View File

@@ -59,7 +59,7 @@ function setSortMembers(params) {
function clean(params) {
return _.omit(params, 'geometry', 'debounce');
return _.omit(params, ['geometry', 'debounce']);
}