publ-echo-test 0.0.137 → 0.0.138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,7 +119,10 @@ export var findGroupBlocks = function (block, targetId) {
119
119
  if (targetBlock.blockId === 'ROOT') {
120
120
  return groupBlocks;
121
121
  }
122
- return [targetBlock].concat(groupBlocks).concat(groupInBulk);
122
+ if (groupInBulk.length > 0) {
123
+ return [targetBlock].concat(groupBlocks).concat(groupInBulk);
124
+ }
125
+ return [targetBlock].concat(groupBlocks);
123
126
  };
124
127
  // export const findAllComponentBlockIds = (blockStructure: Block[]): number[] => {
125
128
  // const collectComponentBlockIds = (blocks: Block[]): number[] => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.137",
3
+ "version": "0.0.138",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",