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() {
|
function showNewProjectScreen() {
|
||||||
|
createProjectOptions = {};
|
||||||
if (!activeProject) {
|
if (!activeProject) {
|
||||||
show('welcome');
|
show('welcome');
|
||||||
} else {
|
} else {
|
||||||
|
@ -685,7 +685,11 @@ Project.prototype.getFlowFile = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Project.prototype.getFlowFileBackup = function() {
|
Project.prototype.getFlowFileBackup = function() {
|
||||||
return getBackupFilename(this.getFlowFile());
|
var flowFile = this.getFlowFile();
|
||||||
|
if (flowFile) {
|
||||||
|
return getBackupFilename(flowFile);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
Project.prototype.getCredentialsFile = function() {
|
Project.prototype.getCredentialsFile = function() {
|
||||||
// console.log("Project.getCredentialsFile = ",this.paths.credentialsFile);
|
// console.log("Project.getCredentialsFile = ",this.paths.credentialsFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user