We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f24ef2 + 73474fa commit fa47280Copy full SHA for fa47280
html_views/src/goals/StateModel.ts
@@ -190,7 +190,7 @@ export class StateModel {
190
])
191
var elmnt = document.getElementById("firstGoal");
192
elmnt.scrollIntoView({block: "center", inline: "nearest"});
193
- } else if (state.backgroundGoals.before.length > 0 || state.backgroundGoals.after.length > 0 || state.backgroundGoals.next != undefined ) {
+ } else if (state.backgroundGoals && (state.backgroundGoals.before.length > 0 || state.backgroundGoals.after && state.backgroundGoals.after.length > 0 || state.backgroundGoals.next)) {
194
this.setMessage("There are unfocused goals.");
195
} else if (state.shelvedGoals.length > 0 ) {
196
this.setMessage("There are shelved goals. Try using `Unshelve`.");
0 commit comments