From 06caeb87b7bce077603a4c8f36804c9038e8d99f Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sat, 22 Apr 2017 23:05:15 -0400 Subject: [PATCH] Correct lodash _.omit usage (closes #3965) --- modules/behavior/paste.js | 2 +- modules/services/taginfo.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/behavior/paste.js b/modules/behavior/paste.js index f472e14cb..137d79298 100644 --- a/modules/behavior/paste.js +++ b/modules/behavior/paste.js @@ -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. diff --git a/modules/services/taginfo.js b/modules/services/taginfo.js index 78dcde620..de0a23e69 100644 --- a/modules/services/taginfo.js +++ b/modules/services/taginfo.js @@ -59,7 +59,7 @@ function setSortMembers(params) { function clean(params) { - return _.omit(params, 'geometry', 'debounce'); + return _.omit(params, ['geometry', 'debounce']); }