From eb0d0a35d16888cc8398790cd8567894200affd9 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 25 Mar 2019 22:03:39 -0400 Subject: [PATCH] Remove lodash pull (re: #6087) --- modules/ui/fields/radio.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ui/fields/radio.js b/modules/ui/fields/radio.js index 1ef291974..320594533 100644 --- a/modules/ui/fields/radio.js +++ b/modules/ui/fields/radio.js @@ -1,4 +1,3 @@ -import _pull from 'lodash-es/pull'; import _union from 'lodash-es/union'; import { dispatch as d3_dispatch } from 'd3-dispatch'; @@ -157,7 +156,7 @@ export function uiFieldRadio(field, context) { field.keys = _union(field.keys, ['layer']); } else { layerField = null; - _pull(field.keys, 'layer'); + field.keys = field.keys.filter(function(k) { return k !== 'layer'; }); } var layerItem = list.selectAll('.structure-layer-item')