Skip to content

Commit

Permalink
Cleanup in Categories block data retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Aug 3, 2017
1 parent 30ba95e commit 0fa3f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/library/categories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ registerBlockType( 'core/categories', {
getCategories( parentId = null ) {
const { categories } = this.state;
if ( ! categories.length ) {
return [];
return categories;
}

if ( parentId === null ) {
Expand Down

0 comments on commit 0fa3f29

Please sign in to comment.