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) {
var examples = runtime.nodes.getNodeExampleFlows();
var examples = runtime.nodes.getNodeExampleFlows()||{};
var result = [];
if (path === "") {
return Promise.resolve(Object.keys(examples));