Skip to content

Commit a5660af

Browse files
Update node.js (#100)
Fix issue preventing to load on my instance
1 parent 0811bd6 commit a5660af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node-red-node-ui-table/node.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ module.exports = function (RED) {
324324
RED.nodes.registerType('ui_table', TableNode);
325325

326326
var uipath = 'ui';
327-
if (RED.settings.ui) { uipath = RED.settings.ui.path; }
327+
if (RED?.settings?.ui?.path) { uipath = RED.settings.ui.path; }
328328
var fullPath = path.join('/', uipath, '/ui-table/*').replace(/\\/g, '/');
329329
RED.httpNode.get(fullPath, function (req, res) {
330330
var options = {
@@ -333,4 +333,4 @@ module.exports = function (RED) {
333333
};
334334
res.sendFile(req.params[0], options)
335335
});
336-
};
336+
};

0 commit comments

Comments
 (0)