diff --git a/packages/node_modules/@node-red/registry/lib/library.js b/packages/node_modules/@node-red/registry/lib/library.js index 1eea6ed56..a8ca8a775 100644 --- a/packages/node_modules/@node-red/registry/lib/library.js +++ b/packages/node_modules/@node-red/registry/lib/library.js @@ -51,7 +51,6 @@ function getFlowsFromPath(path) { } i++; }) - resolve(result); }) }); @@ -61,6 +60,7 @@ function getFlowsFromPath(path) { function addNodeExamplesDir(module,path) { exampleRoots[module] = path; return getFlowsFromPath(path).then(function(result) { + if (JSON.stringify(result).indexOf('{"f":') === -1) { return; } exampleFlows = exampleFlows||{}; exampleFlows[module] = result; });