Skip to content

Commit

Permalink
Undo this one since rootChildBlocks can be undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Mar 21, 2020
1 parent 2606fbd commit e55d40d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/components/inserter/block-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
flow,
sortBy,
groupBy,
includes,
isEmpty,
without,
} from 'lodash';
Expand Down Expand Up @@ -201,7 +202,7 @@ function InserterBlockList( {

const childItems = useMemo( () => {
return filter( filteredItems, ( { name } ) =>
rootChildBlocks.includes( name )
includes( rootChildBlocks, name )
);
}, [ filteredItems, rootChildBlocks ] );

Expand Down

0 comments on commit e55d40d

Please sign in to comment.