diff --git a/editor/js/ui/projects/projects.js b/editor/js/ui/projects/projects.js index 1aebd9cbc..5682a2053 100644 --- a/editor/js/ui/projects/projects.js +++ b/editor/js/ui/projects/projects.js @@ -99,13 +99,13 @@ RED.projects = (function() { var row = $('
').appendTo(body); $('').appendTo(row); - gitUsernameInput = $('').val(existingGitSettings.name||"").appendTo(row); + gitUsernameInput = $('').val((existingGitSettings&&existingGitSettings.name)||"").appendTo(row); // $('
').text("This does not need to be your real name").appendTo(row); gitUsernameInput.on("change keyup paste",validateForm); row = $('
').appendTo(body); $('').appendTo(row); - gitEmailInput = $('').val(existingGitSettings.email||"").appendTo(row); + gitEmailInput = $('').val((existingGitSettings&&existingGitSettings.email)||"").appendTo(row); gitEmailInput.on("change keyup paste",validateForm); // $('
').text("Something something email").appendTo(row); setTimeout(function() {