Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Use forEach from lodash for ie11 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Jun 24, 2019
1 parent 2d4d419 commit 7437519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/blocks/product-categories/frontend.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* External dependencies
*/
import { forEach } from 'lodash';
import { render } from '@wordpress/element';

/**
Expand All @@ -13,7 +14,7 @@ const containers = document.querySelectorAll(
);

if ( containers.length ) {
containers.forEach( ( el ) => {
forEach( containers, ( el ) => {
const data = JSON.parse( JSON.stringify( el.dataset ) );
const attributes = {
hasCount: data.hasCount === 'true',
Expand Down

0 comments on commit 7437519

Please sign in to comment.