1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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