fix: preserve Today order when resuming a break
This commit is contained in:
parent
ea08f566ff
commit
40284a7e30
|
|
@ -1828,7 +1828,11 @@
|
||||||
selectTodayWork();
|
selectTodayWork();
|
||||||
workSession.reopen(todayMyWork.find(item => todayWork.identity(item) === identity));
|
workSession.reopen(todayMyWork.find(item => todayWork.identity(item) === identity));
|
||||||
},
|
},
|
||||||
onResume: () => resumeTodaySession(),
|
onResume: identity => {
|
||||||
|
selectTodayWork();
|
||||||
|
const item = todayMyWork.find(entry => todayWork.identity(entry) === identity);
|
||||||
|
if (!workSession.resume(item)) resumeTodaySession();
|
||||||
|
},
|
||||||
onComplete: identity => {
|
onComplete: identity => {
|
||||||
const item = todayMyWork.find(entry => todayWork.identity(entry) === identity);
|
const item = todayMyWork.find(entry => todayWork.identity(entry) === identity);
|
||||||
return completeTodayItem(item);
|
return completeTodayItem(item);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user