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.
1 parent 3f49200 commit 9a55e39Copy full SHA for 9a55e39
src/include/tasks.js
@@ -180,10 +180,13 @@ class tasks {
180
*/
181
resume() {
182
return new Promise((resolve, reject) => {
183
- let frames = new FrameCollection(this.config);
+ let project = this.config.get('project'),
184
+ frames = new FrameCollection(this.config);
185
+
186
+ if (!project) return reject("No project set.");
187
188
frames
- .filter(frame => frame.project === this.config.get('project'))
189
+ .filter(frame => frame.project === project)
190
.sort((a, b) => moment(a.stop).isBefore(moment(b.stop)) ? 1 : -1);
191
192
let last = frames.frames[0];
0 commit comments