Skip to content

Commit

Permalink
Lodash: Remove from Latest Posts block (#50593)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla authored May 12, 2023
1 parent 298df3a commit 7250336
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/block-library/src/latest-posts/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* External dependencies
*/
import { TouchableWithoutFeedback, View, Text } from 'react-native';
import { isEmpty } from 'lodash';

/**
* WordPress dependencies
Expand Down Expand Up @@ -63,9 +62,7 @@ class LatestPostsEdit extends Component {
.then( ( categoriesList ) => {
if ( this.isStillMounted ) {
this.setState( {
categoriesList: isEmpty( categoriesList )
? []
: categoriesList,
categoriesList,
} );
}
} )
Expand Down

1 comment on commit 7250336

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 7250336.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4960057535
📝 Reported issues:

Please sign in to comment.