Skip to content

Commit

Permalink
Merge pull request #1533 from vektor-inc/remove/margin/lodash-find
Browse files Browse the repository at this point in the history
Lodash: Refactor away from _.find()
  • Loading branch information
osmdik authored Jan 11, 2023
2 parents dfc4533 + 82ea8fb commit 44083aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/extensions/common/margin-extension/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { useEffect } from '@wordpress/element';
* External dependencies
*/
import classnames from 'classnames';
import { find } from 'lodash';

/**
* Internal dependencies
Expand Down Expand Up @@ -230,12 +229,10 @@ addFilter(
activeMarginBottomClassArray.slice(-1)[0];

// アクティブマージンのObjectを作る
const activeMarginTop = find(
marginTopControls,
const activeMarginTop = marginTopControls.find(
(control) => control.marginClass === activeMarginTopClass
);
const activeMarginBottom = find(
marginBottomControls,
const activeMarginBottom = marginBottomControls.find(
(control) => control.marginClass === activeMarginBottomClass
);

Expand Down

0 comments on commit 44083aa

Please sign in to comment.