publ-echo-test 0.0.80 → 0.0.82
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.
@@ -196,7 +196,7 @@ export var addBulkToTarget = function (blockStructure, targetId, bulkIds // comp
|
|
196
196
|
return blockStructure;
|
197
197
|
}
|
198
198
|
var bulkBlocks = targetBlock.children.filter(function (child) {
|
199
|
-
if (child.type === 'COMPONENT_BLOCK' && bulkIds.includes(child.
|
199
|
+
if (child.type === 'COMPONENT_BLOCK' && bulkIds.includes(child.blockId.toString())) {
|
200
200
|
return true;
|
201
201
|
}
|
202
202
|
if (child.type === 'GROUP_BLOCK' && bulkIds.includes(child.blockId)) {
|
@@ -205,7 +205,10 @@ export var addBulkToTarget = function (blockStructure, targetId, bulkIds // comp
|
|
205
205
|
return false;
|
206
206
|
});
|
207
207
|
if (bulkBlocks.length !== bulkIds.length) {
|
208
|
-
|
208
|
+
window.alert('Some bulkIds do not exist as children of the target block.');
|
209
|
+
console.log('bulkBLocks: ', bulkBlocks);
|
210
|
+
console.log('bulkIds: ', bulkIds);
|
211
|
+
return blockStructure;
|
209
212
|
}
|
210
213
|
if (bulkBlocks.length === 0) {
|
211
214
|
return blockStructure;
|