Skip to content

Commit

Permalink
change(blocks): commented group block order than removed most used se…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
ichim-david committed May 12, 2023
1 parent 46b0a1d commit 71e0def
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/localconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ export function applyConfig(config) {
config.blocks = {
...config.blocks,

groupBlocksOrder: [
{ id: 'common_blocks', title: 'Common blocks' },
{ id: 'forests_specific', title: 'Forests Specific Blocks' },
...uniqBy(config.blocks.groupBlocksOrder, 'id').filter(
(block) => !['text', 'mostUsed', 'media', 'common'].includes(block.id),
),
],
// comment block order because it removes most used grouping
// groupBlocksOrder: [
// { id: 'common_blocks', title: 'Common blocks' },
// { id: 'forests_specific', title: 'Forests Specific Blocks' },
// ...uniqBy(config.blocks.groupBlocksOrder, 'id').filter(
// (block) => !['text', 'mostUsed', 'media', 'common'].includes(block.id),
// ),
// ],

blocksConfig: {
...Object.keys(config.blocks.blocksConfig).reduce((acc, blockKey) => {
Expand Down

0 comments on commit 71e0def

Please sign in to comment.