Ensure existing files are migrated to first project

This commit is contained in:
Nick O'Leary
2018-01-25 10:13:07 +00:00
parent 5498c6f87d
commit 6d02e70025
3 changed files with 8 additions and 8 deletions

View File

@@ -307,7 +307,7 @@ function reloadActiveProject(action) {
}
function createProject(user, metadata) {
// var userSettings = getUserGitSettings(user);
if (metadata.files && metadata.files.migrateFiles) {
if (metadata.files && metadata.migrateFiles) {
// We expect there to be no active project in this scenario
if (activeProject) {
throw new Error("Cannot migrate as there is an active project");