Skip to content

Commit 50fc998

Browse files
committed
fix default catalogues
1 parent c6b13ed commit 50fc998

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openflow-nodered",
3-
"version": "1.0.91",
3+
"version": "1.0.92",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

OpenFlowNodeRED/src/WebServer.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ export class WebServer {
149149

150150
this.settings.storageModule = new noderedcontribopenflowstorage(logger, socket);
151151
var n: noderednpmrc = await this.settings.storageModule._getnpmrc();
152-
if (!NoderedUtil.IsNullUndefinded(n) && !NoderedUtil.IsNullUndefinded(n.catalogues)) this.settings.editorTheme.palette.catalogues = n.catalogues;
152+
if (!NoderedUtil.IsNullUndefinded(n) && !NoderedUtil.IsNullUndefinded(n.catalogues)) {
153+
this.settings.editorTheme.palette.catalogues = n.catalogues;
154+
} else {
155+
this.settings.editorTheme.palette.catalogues = ['https://catalogue.nodered.org/catalogue.json'];
156+
}
153157

154158
this.settings.ui.path = "ui";
155159
// this.settings.ui.middleware = new dashboardAuth();

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.91
1+
1.0.92

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openiap",
3-
"version": "1.0.91",
3+
"version": "1.0.92",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)