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

Handle null profile flow file name

This commit is contained in:
Nick O'Leary 2018-01-25 11:14:16 +00:00
parent 6d02e70025
commit c43647ca86
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 6 additions and 1 deletions

View File

@ -1811,6 +1811,7 @@ RED.projects = (function() {
function showNewProjectScreen() {
createProjectOptions = {};
if (!activeProject) {
show('welcome');
} else {

View File

@ -685,7 +685,11 @@ Project.prototype.getFlowFile = function() {
}
Project.prototype.getFlowFileBackup = function() {
return getBackupFilename(this.getFlowFile());
var flowFile = this.getFlowFile();
if (flowFile) {
return getBackupFilename(flowFile);
}
return null;
}
Project.prototype.getCredentialsFile = function() {
// console.log("Project.getCredentialsFile = ",this.paths.credentialsFile);