Skip to content

Commit

Permalink
Fix getInserterItems cache. (#7055)
Browse files Browse the repository at this point in the history
The selector depended on the result of getBlockTypes() but it was not being taken into account on the creatSelector dependents.
  • Loading branch information
jorgefilipecosta authored May 31, 2018
1 parent 26ebf42 commit 802f890
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,7 @@ export const getInserterItems = createSelector(
state.settings.allowedBlockTypes,
state.settings.templateLock,
state.sharedBlocks.data,
getBlockTypes(),
],
);

Expand Down

0 comments on commit 802f890

Please sign in to comment.