Skip to content

Commit

Permalink
avoid crash when there are no evernote settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ckemmler committed Dec 3, 2015
1 parent e45c082 commit b7ce366
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fluxtream-web/src/main/webapp/js/ConnectorConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ define(["applications/calendar/tabs/clock/ClockConfig", "libs/moves-colorcodes"]
}
if (facet.tagGuids!=null && facet.tagGuids.length>0) {
facet.evernoteTags = [];
for (var i=0; i<facet.tagGuids.length;i++) {
var evernoteTag = settings.tags[facet.tagGuids[i]];
facet.evernoteTags.push(evernoteTag);
if (settings.tags) {
for (var i = 0; i < facet.tagGuids.length; i++) {
var evernoteTag = settings.tags[facet.tagGuids[i]];
facet.evernoteTags.push(evernoteTag);
}
}
}
}
Expand Down

0 comments on commit b7ce366

Please sign in to comment.