diff --git a/packages/node_modules/@node-red/nodes/core/storage/10-file.js b/packages/node_modules/@node-red/nodes/core/storage/10-file.js index b6531a3a6..c475ff844 100644 --- a/packages/node_modules/@node-red/nodes/core/storage/10-file.js +++ b/packages/node_modules/@node-red/nodes/core/storage/10-file.js @@ -76,7 +76,7 @@ module.exports = function(RED) { filename = value; } }); - + filename = filename || ""; var fullFilename = filename; if (filename && RED.settings.fileWorkingDirectory && !path.isAbsolute(filename)) { fullFilename = path.resolve(path.join(RED.settings.fileWorkingDirectory,filename)); @@ -321,7 +321,7 @@ module.exports = function(RED) { filename = (value || "").replace(/\t|\r|\n/g,''); } }); - + filename = filename || ""; var fullFilename = filename; var filePath = ""; if (filename && RED.settings.fileWorkingDirectory && !path.isAbsolute(filename)) {