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
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 1 additions and 1 deletions

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));