Handle empty list of example flows

Fixes #2171
This commit is contained in:
Nick O'Leary
2019-05-28 11:21:53 +01:00
parent 2d6acfae1b
commit ed033565a4

View File

@@ -23,7 +23,7 @@ function init(_runtime) {
} }
function getEntry(type,path) { function getEntry(type,path) {
var examples = runtime.nodes.getNodeExampleFlows(); var examples = runtime.nodes.getNodeExampleFlows()||{};
var result = []; var result = [];
if (path === "") { if (path === "") {
return Promise.resolve(Object.keys(examples)); return Promise.resolve(Object.keys(examples));