Skip to content

Commit

Permalink
馃悰 Make sure data is set
Browse files Browse the repository at this point in the history
Closes #3364
  • Loading branch information
foosel committed Dec 2, 2019
1 parent 4f25ed5 commit e235fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/octoprint/static/js/app/viewmodels/loginstate.js
Expand Up @@ -157,7 +157,7 @@ $(function() {
self.userneeds({});
}

if (data.name) {
if (data && data.name) {
self.username(data.name);
self.currentUser(data);

Expand Down

0 comments on commit e235fc2

Please sign in to comment.