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:
parent
6d02e70025
commit
c43647ca86
@ -1811,6 +1811,7 @@ RED.projects = (function() {
|
||||
|
||||
|
||||
function showNewProjectScreen() {
|
||||
createProjectOptions = {};
|
||||
if (!activeProject) {
|
||||
show('welcome');
|
||||
} else {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user