publ-echo-test 0.0.131 → 0.0.133
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.
@@ -235,6 +235,9 @@ var findPath = function (block, id, path) {
|
|
235
235
|
for (var _i = 0, _a = block.children; _i < _a.length; _i++) {
|
236
236
|
var child = _a[_i];
|
237
237
|
var currentPath = __spreadArray(__spreadArray([], path, true), [child.blockId], false);
|
238
|
+
if (child.type === 'COMPONENT_BLOCK') {
|
239
|
+
return currentPath;
|
240
|
+
}
|
238
241
|
if (child.blockId === id) {
|
239
242
|
return currentPath;
|
240
243
|
}
|
@@ -248,7 +251,7 @@ var findPath = function (block, id, path) {
|
|
248
251
|
return null;
|
249
252
|
};
|
250
253
|
export var getBlockWorkDirPath = function (block, blockId) {
|
251
|
-
var path = findPath(block, blockId, ['']);
|
254
|
+
var path = findPath(block, blockId, ['/ROOT']);
|
252
255
|
return path ? path.join('/') : null;
|
253
256
|
};
|
254
257
|
export function formatBlockIdToCbId(blockId) {
|