We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0811bd6 commit a5660afCopy full SHA for a5660af
node-red-node-ui-table/node.js
@@ -324,7 +324,7 @@ module.exports = function (RED) {
324
RED.nodes.registerType('ui_table', TableNode);
325
326
var uipath = 'ui';
327
- if (RED.settings.ui) { uipath = RED.settings.ui.path; }
+ if (RED?.settings?.ui?.path) { uipath = RED.settings.ui.path; }
328
var fullPath = path.join('/', uipath, '/ui-table/*').replace(/\\/g, '/');
329
RED.httpNode.get(fullPath, function (req, res) {
330
var options = {
@@ -333,4 +333,4 @@ module.exports = function (RED) {
333
};
334
res.sendFile(req.params[0], options)
335
});
336
-};
+};
0 commit comments