publ-echo-test 0.0.119 → 0.0.121
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.
@@ -221,8 +221,8 @@ var findPath = function (block, id, path) {
|
|
221
221
|
if (child.blockId === id) {
|
222
222
|
return currentPath;
|
223
223
|
}
|
224
|
-
if ('children' in
|
225
|
-
var result = findPath(
|
224
|
+
if ('children' in child && child.children) {
|
225
|
+
var result = findPath(child, id, currentPath); // Pass the correct child block here
|
226
226
|
if (result) {
|
227
227
|
return result;
|
228
228
|
}
|